Skip to content
Snippets Groups Projects
Commit 12970f8c authored by Ansgar Philippsen's avatar Ansgar Philippsen
Browse files

fixed missing geom min/max py wrapper

parent ca5926b0
Branches
Tags
No related merge requests found
......@@ -35,6 +35,8 @@ Mat2 (*Mat2Transpose)(const Mat2& m) = &Trans
Real (*Vec2Angle)(const Vec2& v1, const Vec2& v2) = &Angle;
Vec2 (*Vec2Normalize)(const Vec2& v1) = &Normalize;
Vec2 (*Vec2Rotate)(const Vec2& v1,Real ang) = &Rotate;
Vec2 (*Vec2Min)(const Vec2&, const Vec2&) = &Min;
Vec2 (*Vec2Max)(const Vec2&, const Vec2&) = &Max;
void export_VecMat2_op()
{
......@@ -53,4 +55,6 @@ void export_VecMat2_op()
def("Angle",Vec2Angle);
def("Normalize",Vec2Normalize);
def("Rotate",Vec2Rotate);
def("Min",Vec2Min);
def("Max",Vec2Max);
}
......@@ -36,6 +36,8 @@ Mat3 (*Mat3Invert)(const Mat3& m) = &Inver
Mat3 (*Mat3Transpose)(const Mat3& m) = &Transpose;
Real (*Mat3Comp)(const Mat3& m, unsigned int i, unsigned int j) = &Comp;
Real (*Mat3Minor)(const Mat3& m, unsigned int i, unsigned int j) = &Minor;
Vec3 (*Vec3Min)(const Vec3&, const Vec3&) = &Min;
Vec3 (*Vec3Max)(const Vec3&, const Vec3&) = &Max;
void export_VecMat3_op()
......@@ -60,4 +62,6 @@ void export_VecMat3_op()
def("EulerTransformation",EulerTransformation);
def("AxisRotation",AxisRotation);
def("OrthogonalVector",OrthogonalVector);
def("Min",Vec3Min);
def("Max",Vec3Max);
}
......@@ -36,6 +36,8 @@ Mat4 (*Mat4Transpose)(const Mat4& m) = &Trans
Real (*Mat4Comp)(const Mat4& m, unsigned int i, unsigned int j) = &Comp;
Real (*Mat4Minor)(const Mat4& m, unsigned int i, unsigned int j) = &Minor;
Real (*Vec4Angle)(const Vec4& v1, const Vec4& v2) = &Angle;
Vec4 (*Vec4Min)(const Vec4&, const Vec4&) = &Min;
Vec4 (*Vec4Max)(const Vec4&, const Vec4&) = &Max;
void export_VecMat4_op()
......@@ -55,4 +57,6 @@ void export_VecMat4_op()
def("Comp",Mat4Comp);
def("Minor",Mat4Minor);
def("Angle",Vec4Angle);
def("Min",Vec4Min);
def("Max",Vec4Max);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment