|
CeresEngine 0.2.0
A game development framework
|
Represents a line segment in three dimensional space defined by a start and an end point. More...
#include <CeresEngine/Math/Geometry.hpp>
Public Member Functions | |
| TLineSegment ()=default | |
| TLineSegment (const TVector3< T > &start, const TVector3< T > &end) | |
| Pair< Array< TVector3< T >, 2 >, T > | getNearestPoint (const TRay< T > &ray) const |
| Find the nearest point on the line segment and the provided ray. | |
| T | getLength () const |
| Returns the length of the line segment. | |
| TVector3< T > | getCenter () const |
| Returns the center point along the line segment. | |
Public Attributes | |
| TVector3< T > | start = TVector3<T>(0.0) |
| TVector3< T > | end = TVector3<T>(0.0) |
Represents a line segment in three dimensional space defined by a start and an end point.
|
default |
|
inline |
|
inline |
Returns the center point along the line segment.
|
inline |
Returns the length of the line segment.
| Pair< Array< TVector3< T >, 2 >, T > Math::TLineSegment< T >::getNearestPoint | ( | const TRay< T > & | ray | ) | const |
Find the nearest point on the line segment and the provided ray.
| TVector3<T> Math::TLineSegment< T >::end = TVector3<T>(0.0) |
| TVector3<T> Math::TLineSegment< T >::start = TVector3<T>(0.0) |