Simple++
Powerfull and lightning fast C++ Library
|
Class representing a line. More...
#include <Line.h>
Public Member Functions | |
Line (const Vec2< T > &p0, const Vec2< T > &p1) | |
Constructor with two points. More... | |
Line (const T &x0, const T &y0, const T &x1, const T &y1) | |
Constructor with two points. More... | |
Line () | |
Empty constructor, not initialized. More... | |
const Vec2< T > & | getP0 () const |
get the First point More... | |
const Vec2< T > & | getP1 () const |
get the Second point More... | |
void | setP0 (const Vec2< T > &p) |
set the First point. More... | |
void | setP1 (const Vec2< T > &p) |
set the Second point. More... | |
Class representing a line.
Math::Line< T >::Line | ( | const Vec2< T > & | p0, |
const Vec2< T > & | p1 | ||
) |
Constructor with two points.
p0 | Point 1 |
p1 | Point 2 |
Math::Line< T >::Line | ( | const T & | x0, |
const T & | y0, | ||
const T & | x1, | ||
const T & | y1 | ||
) |
Constructor with two points.
x0 | X Coordinate of the First point. |
y0 | Y Coordinate of the First point. |
x1 | X Coordinate of the Second point. |
y1 | Y Coordinate of the Second point. |
Math::Line< T >::Line | ( | ) |
Empty constructor, not initialized.
const Vec2< T > & Math::Line< T >::getP0 | ( | ) | const |
get the First point
const Vec2< T > & Math::Line< T >::getP1 | ( | ) | const |
get the Second point
void Math::Line< T >::setP0 | ( | const Vec2< T > & | p | ) |
set the First point.
p | Point |
void Math::Line< T >::setP1 | ( | const Vec2< T > & | p | ) |
set the Second point.
p | Point |