Castor3D 0.16.0
Multiplatform 3D engine
|
3D line equation More...
#include <Line3D.hpp>
Public Member Functions | |
bool | intersects (Line3D const &line, Point< T, 3 > &point) |
Computes intersection between this line and another one. | |
bool | isIn (Point< T, 3 > const &point) |
Tests if a point belongs to the line. | |
Static Public Member Functions | |
static Line3D< T > | fromPointAndSlope (Point< T, 3 > const &point, Point< T, 3 > const &slope) |
Constructor from 2 points. | |
static Line3D< T > | fromPoints (Point< T, 3 > const &a, Point< T, 3 > const &b) |
Constructor from 2 points. | |
Public Attributes | |
Point< T, 3 > | m_slope |
Point< T, 3 > | m_origin |
3D line equation
|
inlinestatic |
Constructor from 2 points.
[in] | point | A point on the line |
[in] | slope | The line slope |
|
inlinestatic |
Constructor from 2 points.
[in] | a,b | Two points on the line |
|
inline |
Computes intersection between this line and another one.
[in] | line | The other line |
[out] | point | Receives the intersection point |
true
if an intersection exists References castor::Line3D< T >::m_origin, and castor::Line3D< T >::m_slope.
|
inline |
Tests if a point belongs to the line.
[in] | point | The point to test |
true
if the point belongs to the line References castor::Line3D< T >::m_origin, and castor::Line3D< T >::m_slope.
Point< T, 3 > castor::Line3D< T >::m_origin |
The origin point.
Referenced by castor::Line3D< T >::intersects(), and castor::Line3D< T >::isIn().
Point< T, 3 > castor::Line3D< T >::m_slope |
The slope point.
Referenced by castor::Line3D< T >::intersects(), and castor::Line3D< T >::isIn().