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