This is the documentation for Enlighten.

class Enlighten Line2D

class Enlighten::Line2D

A line in 2D defined by two points.

Variables

Name Description
Vertex2D m_A

First point.

Vertex2D m_B

Second point.

Functions

Name Description
Line2D()

Default constructor initialising the line to a point at (0,0).

Line2D(const Vertex2D &, const Vertex2D &)

Constructor defining two points on the line.


Enlighten::Line2D::Line2D


public: Line2D()


Default constructor initialising the line to a point at (0,0).


Enlighten::Line2D::Line2D


public: Line2D
(
    const Vertex2D & a,
    const Vertex2D & b
)


Constructor defining two points on the line.