various: moved more to core lib

This commit is contained in:
itsmattkc
2023-01-19 16:01:31 -08:00
parent dd9c52ab59
commit c1c6893713
92 changed files with 448 additions and 1558 deletions
+1 -2
View File
@@ -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;
+6 -6
View File
@@ -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);