struct geom::LineSegment3

Definition of a line segment in a 3 dimensional space.

#include <GeometryStructures.h>

struct LineSegment3: public geom::LineSegment {
    // construction

    LineSegment3();
    LineSegment3(float x1, float y1, float z1, float x2, float y2, float z2);
    LineSegment3(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;