From 085740e765adb092f378a3efd06c120c0e4a090b Mon Sep 17 00:00:00 2001 From: "chappuis.daniel" Date: Wed, 16 Jun 2010 21:04:51 +0000 Subject: [PATCH] git-svn-id: https://reactphysics3d.googlecode.com/svn/trunk@336 92aac97c-a6ce-11dd-a772-7fcde58d38e6 --- .../reactphysics3d/mathematics/mathematics.h | 23 ++++++++++++++----- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/sources/reactphysics3d/mathematics/mathematics.h b/sources/reactphysics3d/mathematics/mathematics.h index 118fd57b..b7f6bc93 100644 --- a/sources/reactphysics3d/mathematics/mathematics.h +++ b/sources/reactphysics3d/mathematics/mathematics.h @@ -18,9 +18,9 @@ ***************************************************************************/ // TODO : Mathematics library : Check everywhere that in member methods we use attributes access instead of getter and setter. - -#ifndef MATHEMATICS_H -#define MATHEMATICS_H + +#ifndef MATHEMATICS_H +#define MATHEMATICS_H // Libraries #include "Matrix.h" @@ -261,12 +261,23 @@ inline void computeParallelSegmentsIntersection(const reactphysics3d::Vector3D& // The segment is given by the two vertices in "segment" and the rectangle is given by the ordered vertices in "clipRectangle". // This method returns the clipped segment. inline std::vector clipSegmentWithRectangleInPlane(const std::vector& segment, const std::vector clipRectangle) { + for (int i=0; i