struct geom::LineSegment2
Definition of a line segment in a 2 dimensional space.
#include <GeometryStructures.h> struct LineSegment2: public geom::LineSegment { // construction LineSegment2(); LineSegment2(float x1, float y1, float x2, float y2); LineSegment2(const Vec& init_point1, const Vec& init_point2); };
Inherited Members
public: // typedefs typedef glm::vec<N, float> Vec; // fields Vec point1; Vec point2; // methods float GetLength() const; float GetLengthSqr() const; Vec GetDirection() const; Vec ToVector() const;