18 Float2(
float inX,
float inY) :
x(inX),
y(inY) { }
20 bool operator == (
const Float2 &inRHS)
const {
return x == inRHS.
x &&
y == inRHS.
y; }
21 bool operator != (
const Float2 &inRHS)
const {
return x != inRHS.
x ||
y != inRHS.
y; }
24 friend ostream & operator << (ostream &inStream,
const Float2 &inV)
26 inStream << inV.
x <<
", " << inV.
y;
34static_assert(std::is_trivial<Float2>(),
"Is supposed to be a trivial type!");
#define JPH_NAMESPACE_END
Definition Core.h:425
#define JPH_NAMESPACE_BEGIN
Definition Core.h:419
#define JPH_OVERRIDE_NEW_DELETE
Macro to override the new and delete functions.
Definition Memory.h:50
Float2(const Float2 &inRHS)=default
JPH_OVERRIDE_NEW_DELETE Float2()=default
Intentionally not initialized for performance reasons.
float y
Definition Float2.h:31
float x
Definition Float2.h:30
Float2(float inX, float inY)
Definition Float2.h:18