![]() |
Castor3D 0.17.0
Multiplatform 3D engine
|
2D line equation More...
#include <Line2D.hpp>
Public Member Functions | |
| Line2D (T xA, T yA, T xB, T yB) | |
| Constructor. | |
| bool | intersects (Line2D const &line, T &x, T &y) |
| Computes intersection between this line and another one. | |
Public Attributes | |
| T | a |
| T | b |
2D line equation
|
inline |
Constructor.
| [in] | xA,yA | The coordinates of point A of the line |
| [in] | xB,yB | The coordinates of point B of the line |
|
inline |
Computes intersection between this line and another one.
| [in] | line | The other line |
| [out] | x,y | Receive the intersection point coordinates |
true if an intersection exists References castor::Line2D< T >::a, and castor::Line2D< T >::b.
| T castor::Line2D< T >::a |
The slope.
Referenced by castor::Line2D< T >::intersects().
| T castor::Line2D< T >::b |
The offset.
Referenced by castor::Line2D< T >::intersects().