PSYQO SDK
psyqo::FixedPoint
Class template
Class template
Fixed point number type.
Basic usage
This minimal snippet shows the normal syntax for reaching the type. Open a member below for an operation-specific example.
C++ example
#include "psyqo/fixed-point.hh"
psyqo::FixedPoint& value = /* obtain a valid instance from your game */;Nested types
Fields and constants
Public methods
absPerforms `abs` as part of the fixed point module.MethodceilReturns the ceiling of the fixed point number.Function templateFixedPoint<precisionBits, T, Scale>Constructs a fixed point number from a floating point number.constructorfloorReturns the floor of the fixed point number.Function templateintegerReturns the integer part of the fixed point number.Function templateprintPrints out the fixed point number.MethodrawPerforms `raw` as part of the fixed point module.MethodOperators
operator-Performs `operator -` as part of the fixed point module.Methodoperator--Performs `operator --` as part of the fixed point module.Methodoperator-=Performs `operator -=` as part of the fixed point module.Methodoperator!Performs `operator !` as part of the fixed point module.Methodoperator*Performs `operator *` as part of the fixed point module.Methodoperator*=Performs `operator *=` as part of the fixed point module.Methodoperator/Performs `operator /` as part of the fixed point module.Methodoperator/=Performs `operator /=` as part of the fixed point module.Methodoperator+Performs `operator +` as part of the fixed point module.Methodoperator++Performs `operator ++` as part of the fixed point module.Methodoperator+=Performs `operator +=` as part of the fixed point module.Methodoperator<<Performs `operator <<` as part of the fixed point module.Methodoperator<<=Performs `operator <<=` as part of the fixed point module.Methodoperator<=>Performs `operator <=>` as part of the fixed point module.Methodoperator=Performs `operator =` as part of the fixed point module.Methodoperator>>Performs `operator >>` as part of the fixed point module.Methodoperator>>=Performs `operator >>=` as part of the fixed point module.Method