diff options
Diffstat (limited to 'src/math/vector3f.h')
-rw-r--r-- | src/math/vector3f.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/math/vector3f.h b/src/math/vector3f.h index 7cd533d..6ab77be 100644 --- a/src/math/vector3f.h +++ b/src/math/vector3f.h @@ -226,8 +226,8 @@ inline btVector3 to_btVector3(const math::Vector3f & v) } /// calculate the normal of a plane defined by three vertices -inline const Vector3f normal(const Vector3f & first, const Vector3f & second, const Vector3f & third) { - Vector3f r = crossproduct(second - first, third - first); +inline const Vector3f normal(const Vector3f & center, const Vector3f & u, const Vector3f & v) { + Vector3f r = crossproduct(u - center, v - center); r.normalize(); return r; } |