CommonLibSSE (Parapets fork)
Loading...
Searching...
No Matches
RE::NiPoint3 Class Reference

#include <NiPoint3.h>

Public Member Functions

constexpr NiPoint3 () noexcept=default
 
constexpr NiPoint3 (float a_x, float a_y, float a_z) noexcept
 
float & operator[] (std::size_t a_idx)
 
const float & operator[] (std::size_t a_idx) const
 
bool operator== (const NiPoint3 &a_rhs) const
 
bool operator!= (const NiPoint3 &a_rhs) const
 
NiPoint3 operator+ (const NiPoint3 &a_rhs) const
 
NiPoint3 operator- (const NiPoint3 &a_rhs) const
 
float operator* (const NiPoint3 &a_rhs) const
 
NiPoint3 operator* (float a_scalar) const
 
NiPoint3 operator/ (float a_scalar) const
 
NiPoint3 operator- () const
 
NiPoint3operator+= (const NiPoint3 &a_rhs)
 
NiPoint3operator-= (const NiPoint3 &a_rhs)
 
NiPoint3operator*= (float a_scalar)
 
NiPoint3operator/= (float a_scalar)
 
NiPoint3 Cross (const NiPoint3 &pt) const
 
float GetDistance (const NiPoint3 &a_pt) const noexcept
 
float GetSquaredDistance (const NiPoint3 &a_pt) const noexcept
 
float Length () const
 
float SqrLength () const
 
NiPoint3 UnitCross (const NiPoint3 &a_pt) const
 
float Unitize ()
 

Static Public Member Functions

static const NiPoint3Zero ()
 

Public Attributes

float x { 0.0F }
 
float y { 0.0F }
 
float z { 0.0F }
 

Constructor & Destructor Documentation

◆ NiPoint3() [1/2]

constexpr RE::NiPoint3::NiPoint3 ( )
constexprdefaultnoexcept

◆ NiPoint3() [2/2]

constexpr RE::NiPoint3::NiPoint3 ( float  a_x,
float  a_y,
float  a_z 
)
inlineconstexprnoexcept

Member Function Documentation

◆ Cross()

NiPoint3 RE::NiPoint3::Cross ( const NiPoint3 pt) const

◆ GetDistance()

float RE::NiPoint3::GetDistance ( const NiPoint3 a_pt) const
noexcept

◆ GetSquaredDistance()

float RE::NiPoint3::GetSquaredDistance ( const NiPoint3 a_pt) const
noexcept

◆ Length()

float RE::NiPoint3::Length ( ) const

◆ operator!=()

bool RE::NiPoint3::operator!= ( const NiPoint3 a_rhs) const

◆ operator*() [1/2]

float RE::NiPoint3::operator* ( const NiPoint3 a_rhs) const

◆ operator*() [2/2]

NiPoint3 RE::NiPoint3::operator* ( float  a_scalar) const

◆ operator*=()

NiPoint3 & RE::NiPoint3::operator*= ( float  a_scalar)

◆ operator+()

NiPoint3 RE::NiPoint3::operator+ ( const NiPoint3 a_rhs) const

◆ operator+=()

NiPoint3 & RE::NiPoint3::operator+= ( const NiPoint3 a_rhs)

◆ operator-() [1/2]

NiPoint3 RE::NiPoint3::operator- ( ) const

◆ operator-() [2/2]

NiPoint3 RE::NiPoint3::operator- ( const NiPoint3 a_rhs) const

◆ operator-=()

NiPoint3 & RE::NiPoint3::operator-= ( const NiPoint3 a_rhs)

◆ operator/()

NiPoint3 RE::NiPoint3::operator/ ( float  a_scalar) const

◆ operator/=()

NiPoint3 & RE::NiPoint3::operator/= ( float  a_scalar)

◆ operator==()

bool RE::NiPoint3::operator== ( const NiPoint3 a_rhs) const

◆ operator[]() [1/2]

float & RE::NiPoint3::operator[] ( std::size_t  a_idx)

◆ operator[]() [2/2]

const float & RE::NiPoint3::operator[] ( std::size_t  a_idx) const

◆ SqrLength()

float RE::NiPoint3::SqrLength ( ) const

◆ UnitCross()

NiPoint3 RE::NiPoint3::UnitCross ( const NiPoint3 a_pt) const

◆ Unitize()

float RE::NiPoint3::Unitize ( )

◆ Zero()

static const NiPoint3 & RE::NiPoint3::Zero ( )
static

Member Data Documentation

◆ x

float RE::NiPoint3::x { 0.0F }

◆ y

float RE::NiPoint3::y { 0.0F }

◆ z

float RE::NiPoint3::z { 0.0F }

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