Move Vectormath main
C++20 game and graphics mathematics
Loading...
Searching...
No Matches
mv::math::Point3< T > Class Template Reference

#include <mv/math/semantic/Point3.hpp>

Public Types

using Component = T
 

Public Member Functions

 Point3 () noexcept=default
 
 Point3 (T x, T y, T z) noexcept
 
const Vec3< T > & Vector () const noexcept
 
T X () const noexcept
 
T Y () const noexcept
 
T Z () const noexcept
 
Point3 operator+ (const Vec3< T > &displacement) const noexcept
 
Point3 operator- (const Vec3< T > &displacement) const noexcept
 
Vec3< T > operator- (const Point3 &other) const noexcept
 
Point3 & operator+= (const Vec3< T > &displacement) noexcept
 
Point3 & operator-= (const Vec3< T > &displacement) noexcept
 

Static Public Member Functions

static Point3 Origin () noexcept
 
static Point3 FromVector (const Vec3< T > &value) noexcept
 

Detailed Description

template<typename T>
requires std::is_arithmetic_v<T>
class mv::math::Point3< T >

Definition at line 12 of file Point3.hpp.

Member Typedef Documentation

◆ Component

template<typename T >
using mv::math::Point3< T >::Component = T

Definition at line 15 of file Point3.hpp.

Constructor & Destructor Documentation

◆ Point3() [1/2]

template<typename T >
mv::math::Point3< T >::Point3 ( )
defaultnoexcept

◆ Point3() [2/2]

template<typename T >
mv::math::Point3< T >::Point3 ( T  x,
T  y,
T  z 
)
inlinenoexcept

Definition at line 19 of file Point3.hpp.

Member Function Documentation

◆ FromVector()

template<typename T >
static Point3 mv::math::Point3< T >::FromVector ( const Vec3< T > &  value)
inlinestaticnoexcept

Definition at line 28 of file Point3.hpp.

◆ operator+()

template<typename T >
Point3 mv::math::Point3< T >::operator+ ( const Vec3< T > &  displacement) const
inlinenoexcept

Definition at line 53 of file Point3.hpp.

◆ operator+=()

template<typename T >
Point3 & mv::math::Point3< T >::operator+= ( const Vec3< T > &  displacement)
inlinenoexcept

Definition at line 70 of file Point3.hpp.

◆ operator-() [1/2]

template<typename T >
Vec3< T > mv::math::Point3< T >::operator- ( const Point3< T > &  other) const
inlinenoexcept

Definition at line 65 of file Point3.hpp.

◆ operator-() [2/2]

template<typename T >
Point3 mv::math::Point3< T >::operator- ( const Vec3< T > &  displacement) const
inlinenoexcept

Definition at line 59 of file Point3.hpp.

◆ operator-=()

template<typename T >
Point3 & mv::math::Point3< T >::operator-= ( const Vec3< T > &  displacement)
inlinenoexcept

Definition at line 76 of file Point3.hpp.

◆ Origin()

template<typename T >
static Point3 mv::math::Point3< T >::Origin ( )
inlinestaticnoexcept

Definition at line 23 of file Point3.hpp.

◆ Vector()

template<typename T >
const Vec3< T > & mv::math::Point3< T >::Vector ( ) const
inlinenoexcept

Definition at line 33 of file Point3.hpp.

◆ X()

template<typename T >
T mv::math::Point3< T >::X ( ) const
inlinenoexcept

Definition at line 38 of file Point3.hpp.

◆ Y()

template<typename T >
T mv::math::Point3< T >::Y ( ) const
inlinenoexcept

Definition at line 43 of file Point3.hpp.

◆ Z()

template<typename T >
T mv::math::Point3< T >::Z ( ) const
inlinenoexcept

Definition at line 48 of file Point3.hpp.


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