40 #ifndef _linesegment_cpp
41 #define _linesegment_cpp
43 #include "linesegment.h"
44 #include "MathTools/mathtools.h"
71 {
return MathTools::Intersects(*
this,Other); }
bool Boole
Generally acts a single bit, true or false.
Boole EpsilonEquivalent(const LineSegment3D &Other) const
Equality comparison with some slack.
IntersectionTestResult Intersects(const LineSegment2D &Other) const
Gets whether or not another line segment intersects with this one.
LineSegment3D()
Blank constructor.
A compare fuctor that uses vector length.
LineSegment2D()
Blank constructor.
std::pair< Boole, Vector2 > IntersectionTestResult
This is a type used for the return of a intersection test.
Real SquaredDistance(const Vector3 &OtherVec) const
Gets the squared distance between this and another vector.
A geometry math class for expressing a line connecting 2 points in 3D space.
Vector3 PointB
The second point defining the segment.
This is used to represent a point on a 2 dimentional area, such as a screen.
Vector3 PointA
The first point defining the segment.
This is used to represent a point in space, or a vector through space.
LineSegment3D GetOrderedCopy() const
Gets a copy of this line segment with it's members ordered by length.
The bulk of the engine components go in this namspace.
A geometry math class for expressing a line connecting 2 points in 2D space.