A 4D homogeneous segment. More...
#include <NRE_Segment4D.hpp>
Public Member Functions | |
constexpr | Segment4D ()=default |
template<class K , class L > | |
constexpr | Segment4D (Point4D< K > const &s, Point4D< L > const &e) |
template<class K , class L > | |
constexpr | Segment4D (Point3D< K > const &s, Point3D< L > const &e) |
template<class K , class L , class N , class M , class O , class P > | |
constexpr | Segment4D (K sX, L sY, N sZ, M eX, O eY, P eZ) |
constexpr | Segment4D (Segment4D const &s)=default |
constexpr | Segment4D (Segment4D &&s)=default |
~Segment4D ()=default | |
constexpr Point4D< T > const & | getStart () const |
constexpr Point4D< T > const & | getEnd () const |
constexpr Vector4D< T > | getVector () const |
constexpr Segment4D & | operator= (Segment4D const &s)=default |
constexpr Segment4D & | operator= (Segment4D &&s)=default |
template<class K > | |
constexpr bool | operator== (Segment4D< K > const &s) const |
template<class K > | |
constexpr bool | operator!= (Segment4D< K > const &s) const |
Utility::String | toString () const |
A 4D homogeneous segment.
|
default |
Default constructor
constexpr NRE::Math::Segment4D< T >::Segment4D | ( | Point4D< K > const & | s, |
Point4D< L > const & | e | ||
) |
Construct a segment from his two points
s | the segment's start |
e | the segment's end |
constexpr NRE::Math::Segment4D< T >::Segment4D | ( | 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::Segment4D< T >::Segment4D | ( | K | sX, |
L | sY, | ||
N | sZ, | ||
M | eX, | ||
O | eY, | ||
P | eZ | ||
) |
Construct a segment from his two points
sX | the segment's start x |
sY | the segment's start y |
sZ | the segment's start z |
eX | the segment's end x |
eY | the segment's end y |
eZ | the segment's end z |
|
default |
Copy s into this
s | the 4D segment to copy |
|
default |
Move s into this
s | the 4D segment to move |
|
default |
Segment4D Deconstructor
constexpr Point4D<T> const& NRE::Math::Segment4D< T >::getEnd | ( | ) | const |
constexpr Point4D<T> const& NRE::Math::Segment4D< T >::getStart | ( | ) | const |
constexpr Vector4D<T> NRE::Math::Segment4D< T >::getVector | ( | ) | const |
constexpr bool NRE::Math::Segment4D< T >::operator!= | ( | Segment4D< 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 4D segment to copy into this |
|
default |
Move assignment of s into this
s | the 4D segment to move into this |
constexpr bool NRE::Math::Segment4D< T >::operator== | ( | Segment4D< K > const & | s | ) | const |
Equality test between this and s
s | the segment to test with this |
Utility::String NRE::Math::Segment4D< T >::toString | ( | ) | const |
Convert the segment into a string