various: moved more to core lib
This commit is contained in:
@@ -23,7 +23,6 @@
|
||||
#include <QMatrix4x4>
|
||||
#include <QVector2D>
|
||||
|
||||
#include "common/cpuoptimize.h"
|
||||
#include "common/tohex.h"
|
||||
#include "node/distort/transform/transformdistortnode.h"
|
||||
|
||||
@@ -595,7 +594,7 @@ T MathNodeBase::PerformAll(Operation operation, T a, U b)
|
||||
case kOpDivide:
|
||||
return a / b;
|
||||
case kOpPower:
|
||||
return qPow(a, b);
|
||||
return std::pow(a, b);
|
||||
}
|
||||
|
||||
return a;
|
||||
|
||||
@@ -83,22 +83,22 @@ void TrigonometryNode::Value(const NodeValueRow &value, const NodeGlobals &globa
|
||||
|
||||
switch (static_cast<Operation>(GetStandardValue(kMethodIn).toInt())) {
|
||||
case kOpSine:
|
||||
x = qSin(x);
|
||||
x = std::sin(x);
|
||||
break;
|
||||
case kOpCosine:
|
||||
x = qCos(x);
|
||||
x = std::cos(x);
|
||||
break;
|
||||
case kOpTangent:
|
||||
x = qTan(x);
|
||||
x = std::tan(x);
|
||||
break;
|
||||
case kOpArcSine:
|
||||
x = qAsin(x);
|
||||
x = std::asin(x);
|
||||
break;
|
||||
case kOpArcCosine:
|
||||
x = qAcos(x);
|
||||
x = std::acos(x);
|
||||
break;
|
||||
case kOpArcTangent:
|
||||
x = qAtan(x);
|
||||
x = std::atan(x);
|
||||
break;
|
||||
case kOpHypSine:
|
||||
x = std::sinh(x);
|
||||
|
||||
Reference in New Issue
Block a user