Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
Float3 Class Reference

Class that holds 3 floats. Used as a storage class. Convert to Vec3 for calculations. More...

#include <Float3.h>

Public Member Functions

JPH_OVERRIDE_NEW_DELETE Float3 ()=default
 Intentionally not initialized for performance reasons. More...
 
 Float3 (const Float3 &inRHS)=default
 
Float3operator= (const Float3 &inRHS)=default
 
constexpr Float3 (float inX, float inY, float inZ)
 
float operator[] (int inCoordinate) const
 
bool operator== (const Float3 &inRHS) const
 
bool operator!= (const Float3 &inRHS) const
 

Public Attributes

float x
 
float y
 
float z
 

Detailed Description

Class that holds 3 floats. Used as a storage class. Convert to Vec3 for calculations.

Constructor & Destructor Documentation

◆ Float3() [1/3]

JPH_OVERRIDE_NEW_DELETE Float3::Float3 ( )
default

Intentionally not initialized for performance reasons.

◆ Float3() [2/3]

Float3::Float3 ( const Float3 inRHS)
default

◆ Float3() [3/3]

constexpr Float3::Float3 ( float  inX,
float  inY,
float  inZ 
)
inlineconstexpr

Member Function Documentation

◆ operator!=()

bool Float3::operator!= ( const Float3 inRHS) const
inline

◆ operator=()

Float3 & Float3::operator= ( const Float3 inRHS)
default

◆ operator==()

bool Float3::operator== ( const Float3 inRHS) const
inline

◆ operator[]()

float Float3::operator[] ( int  inCoordinate) const
inline

Member Data Documentation

◆ x

float Float3::x

◆ y

float Float3::y

◆ z

float Float3::z

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