CommonLibSSE NG
Loading...
Searching...
No Matches
RE::NiPoint2 Class Reference

#include <NiPoint2.h>

Public Member Functions

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

Public Attributes

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

Constructor & Destructor Documentation

◆ NiPoint2() [1/2]

constexpr RE::NiPoint2::NiPoint2 ( )
constexprdefaultnoexcept

◆ NiPoint2() [2/2]

constexpr RE::NiPoint2::NiPoint2 ( float  a_x,
float  a_y 
)
inlineconstexprnoexcept

Member Function Documentation

◆ Cross()

float RE::NiPoint2::Cross ( const NiPoint2 a_pt) const

◆ Dot()

float RE::NiPoint2::Dot ( const NiPoint2 a_pt) const

◆ GetDistance()

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

◆ GetSquaredDistance()

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

◆ Length()

float RE::NiPoint2::Length ( ) const

◆ operator!=()

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

◆ operator*() [1/2]

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

◆ operator*() [2/2]

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

◆ operator*=()

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

◆ operator+()

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

◆ operator+=()

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

◆ operator-() [1/2]

NiPoint2 RE::NiPoint2::operator- ( ) const

◆ operator-() [2/2]

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

◆ operator-=()

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

◆ operator/()

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

◆ operator/=()

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

◆ operator==()

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

◆ operator[]() [1/2]

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

◆ operator[]() [2/2]

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

◆ SqrLength()

float RE::NiPoint2::SqrLength ( ) const

◆ Unitize()

float RE::NiPoint2::Unitize ( )

Member Data Documentation

◆ x

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

◆ y

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

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