Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

class Enlighten::Line2D

A line in 2D defined by two points.

Variables

NameDescription
Vertex2D m_A

First point.

Vertex2D m_B

Second point.

Functions

NameDescription
Line2D()

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

Line2D(const Vertex2D &, const Vertex2D &)

Constructor defining two points on the line.


Anchor
acd47594adbb0e9144afc801657e5a3ff
acd47594adbb0e9144afc801657e5a3ff

Enlighten::Line2D::Line2D

...

public: Line2D()

...

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


Anchor
a704b264cb435c6f6fec35a4d0e690136
a704b264cb435c6f6fec35a4d0e690136

Enlighten::Line2D::Line2D

...

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

...

Constructor defining two points on the line.