From cd17583f637cd195f5cbd7e5fa70a1012b257226 Mon Sep 17 00:00:00 2001 From: Irlan <-> Date: Sun, 23 Sep 2018 13:20:25 -0300 Subject: [PATCH] use function --- include/bounce/common/geometry.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/bounce/common/geometry.h b/include/bounce/common/geometry.h index 5d7872a..7cb1582 100644 --- a/include/bounce/common/geometry.h +++ b/include/bounce/common/geometry.h @@ -74,17 +74,16 @@ struct b3Plane }; // Transform a plane by a given frame. -inline b3Plane operator*(const b3Transform& T, const b3Plane& plane) +inline b3Plane b3Mul(const b3Transform& T, const b3Plane& plane) { b3Vec3 normal = b3Mul(T.rotation, plane.normal); return b3Plane(normal, plane.offset + b3Dot(normal, T.position)); } // Transform a plane by a given frame. -inline b3Plane b3Mul(const b3Transform& T, const b3Plane& plane) +inline b3Plane operator*(const b3Transform& T, const b3Plane& plane) { - b3Vec3 normal = b3Mul(T.rotation, plane.normal); - return b3Plane(normal, plane.offset + b3Dot(normal, T.position)); + return b3Mul(T, plane); } // Compute the distance between a point and a plane.