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

Class that holds 2 floats, used as a storage class mainly. More...

#include <Float2.h>

Public Member Functions

JPH_OVERRIDE_NEW_DELETE Float2 ()=default
 Intentionally not initialized for performance reasons. More...
 
 Float2 (const Float2 &inRHS)=default
 
Float2operator= (const Float2 &inRHS)=default
 
 Float2 (float inX, float inY)
 
bool operator== (const Float2 &inRHS) const
 
bool operator!= (const Float2 &inRHS) const
 

Public Attributes

float x
 
float y
 

Friends

ostream & operator<< (ostream &inStream, const Float2 &inV)
 To String. More...
 

Detailed Description

Class that holds 2 floats, used as a storage class mainly.

Constructor & Destructor Documentation

◆ Float2() [1/3]

JPH_OVERRIDE_NEW_DELETE Float2::Float2 ( )
default

Intentionally not initialized for performance reasons.

◆ Float2() [2/3]

Float2::Float2 ( const Float2 inRHS)
default

◆ Float2() [3/3]

Float2::Float2 ( float  inX,
float  inY 
)
inline

Member Function Documentation

◆ operator!=()

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

◆ operator=()

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

◆ operator==()

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

Friends And Related Function Documentation

◆ operator<<

ostream & operator<< ( ostream &  inStream,
const Float2 inV 
)
friend

To String.

Member Data Documentation

◆ x

float Float2::x

◆ y

float Float2::y

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