NRE::Math::Segment4D< T > Class Template Reference

A 4D homogeneous segment. More...

#include <NRE_Segment4D.hpp>

Inheritance diagram for NRE::Math::Segment4D< T >:

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 Segment4Doperator= (Segment4D const &s)=default
 
constexpr Segment4Doperator= (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
 

Detailed Description

template<class T>
class NRE::Math::Segment4D< T >

A 4D homogeneous segment.

Constructor & Destructor Documentation

template<class T>
constexpr NRE::Math::Segment4D< T >::Segment4D ( )
default

Default constructor

template<class T>
template<class K , class L >
constexpr NRE::Math::Segment4D< T >::Segment4D ( Point4D< K > const &  s,
Point4D< L > const &  e 
)

Construct a segment from his two points

Parameters
sthe segment's start
ethe segment's end
template<class T>
template<class K , class L >
constexpr NRE::Math::Segment4D< T >::Segment4D ( Point3D< K > const &  s,
Point3D< L > const &  e 
)

Construct a segment from his two points

Parameters
sthe segment's start
ethe segment's end
template<class T>
template<class K , class L , class N , class M , class O , class P >
constexpr NRE::Math::Segment4D< T >::Segment4D ( sX,
sY,
sZ,
eX,
eY,
eZ 
)

Construct a segment from his two points

Parameters
sXthe segment's start x
sYthe segment's start y
sZthe segment's start z
eXthe segment's end x
eYthe segment's end y
eZthe segment's end z
template<class T>
constexpr NRE::Math::Segment4D< T >::Segment4D ( Segment4D< T > const &  s)
default

Copy s into this

Parameters
sthe 4D segment to copy
template<class T>
constexpr NRE::Math::Segment4D< T >::Segment4D ( Segment4D< T > &&  s)
default

Move s into this

Parameters
sthe 4D segment to move
template<class T>
NRE::Math::Segment4D< T >::~Segment4D ( )
default

Segment4D Deconstructor

Member Function Documentation

template<class T>
constexpr Point4D<T> const& NRE::Math::Segment4D< T >::getEnd ( ) const
Returns
the end point
template<class T>
constexpr Point4D<T> const& NRE::Math::Segment4D< T >::getStart ( ) const
Returns
the start point
template<class T>
constexpr Vector4D<T> NRE::Math::Segment4D< T >::getVector ( ) const
Returns
the segment's vector
template<class T>
template<class K >
constexpr bool NRE::Math::Segment4D< T >::operator!= ( Segment4D< K > const &  s) const

Difference test between this and s

Parameters
sthe segment to test with this
Returns
the test's result
template<class T>
constexpr Segment4D& NRE::Math::Segment4D< T >::operator= ( Segment4D< T > const &  s)
default

Copy assignment of s into this

Parameters
sthe 4D segment to copy into this
Returns
the reference of himself
template<class T>
constexpr Segment4D& NRE::Math::Segment4D< T >::operator= ( Segment4D< T > &&  s)
default

Move assignment of s into this

Parameters
sthe 4D segment to move into this
Returns
the reference of himself
template<class T>
template<class K >
constexpr bool NRE::Math::Segment4D< T >::operator== ( Segment4D< K > const &  s) const

Equality test between this and s

Parameters
sthe segment to test with this
Returns
the test's result
template<class T>
Utility::String NRE::Math::Segment4D< T >::toString ( ) const

Convert the segment into a string

Returns
the converted segment

The documentation for this class was generated from the following files: