A 3D homogeneous segment. More...
#include <NRE_Segment3D.hpp>
Public Member Functions | |
constexpr | Segment3D ()=default |
template<class K , class L > | |
constexpr | Segment3D (Point3D< K > const &s, Point3D< L > const &e) |
template<class K , class L > | |
constexpr | Segment3D (Point2D< K > const &s, Point2D< L > const &e) |
template<class K , class L , class N , class M > | |
constexpr | Segment3D (K sX, L sY, N eX, M eY) |
constexpr | Segment3D (Segment3D const &s)=default |
constexpr | Segment3D (Segment3D &&s)=default |
~Segment3D ()=default | |
constexpr Point3D< T > const & | getStart () const |
constexpr Point3D< T > const & | getEnd () const |
constexpr Vector3D< T > | getVector () const |
constexpr Segment3D & | operator= (Segment3D const &s)=default |
constexpr Segment3D & | operator= (Segment3D &&s)=default |
template<class K > | |
constexpr bool | operator== (Segment3D< K > const &s) const |
template<class K > | |
constexpr bool | operator!= (Segment3D< K > const &s) const |
Utility::String | toString () const |
A 3D homogeneous segment.
|
default |
Default constructor
constexpr NRE::Math::Segment3D< T >::Segment3D | ( | Point3D< K > const & | s, |
Point3D< L > const & | e | ||
) |
Construct a segment from his two points
s | the segment's start |
e | the segment's end |
constexpr NRE::Math::Segment3D< T >::Segment3D | ( | Point2D< K > const & | s, |
Point2D< L > const & | e | ||
) |
Construct a segment from his two points
s | the segment's start |
e | the segment's end |
constexpr NRE::Math::Segment3D< T >::Segment3D | ( | K | sX, |
L | sY, | ||
N | eX, | ||
M | eY | ||
) |
Construct a segment from his two points
sX | the segment's start x |
sY | the segment's start y |
eX | the segment's end x |
eY | the segment's end y |
|
default |
Copy s into this
s | the 3D segment to copy |
|
default |
Move s into this
s | the 3D segment to move |
|
default |
Segment3D Deconstructor
constexpr Point3D<T> const& NRE::Math::Segment3D< T >::getEnd | ( | ) | const |
constexpr Point3D<T> const& NRE::Math::Segment3D< T >::getStart | ( | ) | const |
constexpr Vector3D<T> NRE::Math::Segment3D< T >::getVector | ( | ) | const |
constexpr bool NRE::Math::Segment3D< T >::operator!= | ( | Segment3D< K > const & | s | ) | const |
Difference test between this and s
s | the segment to test with this |
|
default |
Copy assignment of s into this
s | the 3D segment to copy into this |
|
default |
Move assignment of s into this
s | the 3D segment to move into this |
constexpr bool NRE::Math::Segment3D< T >::operator== | ( | Segment3D< K > const & | s | ) | const |
Equality test between this and s
s | the segment to test with this |
Utility::String NRE::Math::Segment3D< T >::toString | ( | ) | const |
Convert the segment into a string