From b45e28346e02d22ec4766b84b4b55fbb67c3d01d Mon Sep 17 00:00:00 2001 From: Niklaus Johner <nij2003@med.cornell.edu> Date: Fri, 7 Mar 2014 09:31:45 -0500 Subject: [PATCH] Added export for SignedAngle between two Vec3. --- modules/geom/pymod/export_vecmat3_op.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/geom/pymod/export_vecmat3_op.cc b/modules/geom/pymod/export_vecmat3_op.cc index b2f7c17bf..0cdc3e373 100644 --- a/modules/geom/pymod/export_vecmat3_op.cc +++ b/modules/geom/pymod/export_vecmat3_op.cc @@ -38,6 +38,7 @@ 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; +Real (*Vec3SignedAngle)(const Vec3& v1, const Vec3& v2, const Vec3& v3) = &SignedAngle; Real (*Vec3Distance2WithPBC)(const Vec3&, const Vec3&, const Vec3&) = &Distance2WithPBC; Real (*Vec3DistanceWithPBC)(const Vec3&, const Vec3&, const Vec3&) = &DistanceWithPBC; Vec3 (*wrap_vec3_1)(const Vec3&, const Vec3&, const Vec3&) = &WrapVec3; @@ -56,6 +57,7 @@ void export_VecMat3_op() def("Distance",Vec3Distance); def("Equal",Mat3Equal, (arg("m1"), arg("m2"), arg("epsilon")=EPSILON)); def("DihedralAngle", &DihedralAngle); + def("SignedAngle", Vec3SignedAngle, (arg("v1"), arg("v2"),arg("ref_normal"))); def("Dot",Mat3Dot); def("Det",Mat3Det); def("Cross",Vec3Cross); -- GitLab