#define COS2DEG( a ) ( acos_tpl(a)*(180.0f/gf_PI) )
Cry_Math.h
#define DEFAULT_FAR 1024.0f
Cry_Camera.h
#define DEFAULT_FOV (75.0f*gf_PI/180.0f)
Cry_Camera.h
#define DEFAULT_NEAR 0.25f
Cry_Camera.h
#define DEG2COS( a ) ( cos_tpl( (a)*(gf_PI/180.0f) ) )
Cry_Math.h
#define DEG2HCOS( a ) ( cos_tpl( (a*0.5f)*(gf_PI/180.0f) ) )
Cry_Math.h
#define DEG2RAD( a ) ( (a) * (gf_PI/180.0f) )
Cry_Math.h
#define DoubleU64(x) (*( (uint64*) &(x) ))
Cry_ValidNumber.h
#define DoubleU64ExpMask ((uint64)255 << 55)
Cry_ValidNumber.h
#define DoubleU64FracMask (((uint64)1 << 55) - (uint64)1)
Cry_ValidNumber.h
#define DoubleU64SignMask ((uint64)1 << 63)
Cry_ValidNumber.h
#define F32NAN (0x7F800001) // Produces rock solid fp-exceptions.
Cry_ValidNumber.h
Produces rock solid fp-exceptions.
#define F32NAN_SAFE (FloatU32ExpMask | FloatU32FracMask) // This one is not triggering an fp-exception.
Cry_ValidNumber.h
This one is not triggering an fp-exception.
#define F64NAN (0x7FF0000000000001) // Produces rock solid fp-exceptions.
Cry_ValidNumber.h
Produces rock solid fp-exceptions.
#define F64NAN_SAFE (DoubleU64ExpMask | DoubleU64FracMask) // This one is not triggering an fp-exception.
Cry_ValidNumber.h
This one is not triggering an fp-exception.
#define FloatU32(x) (alias_castfloat>(x))
Cry_ValidNumber.h
#define FloatU32ExpMask (0xFF << 23)
Cry_ValidNumber.h
#define FloatU32FracMask ((1 << 23) - 1)
Cry_ValidNumber.h
#define FloatU32SignMask (1 << 31)
Cry_ValidNumber.h
#define HCOS2DEG( a ) ( acos_tpl(a)*2.0f*(180.0f/gf_PI) )
Cry_Math.h
#define HCOS2RAD( a ) ( acos_tpl(a)*2.0f )
Cry_Math.h
#define LN2 0.69314718055994530941723212145818f // ln(2)
Cry_Math.h
ln(2)
#define mathMatrixRotationX(pOut, angle) (*(Matrix44*)pOut) = GetTransposed44( Matrix44(Matrix34::CreateRotationX(angle)) )
Cry_XOptimise.h
#define mathMatrixRotationY(pOut, angle) (*(Matrix44*)pOut) = GetTransposed44( Matrix44(Matrix34::CreateRotationY(angle)) )
Cry_XOptimise.h
#define mathMatrixRotationZ(pOut, angle) (*(Matrix44*)pOut) = GetTransposed44( Matrix44(Matrix34::CreateRotationZ(angle)) )
Cry_XOptimise.h
#define mathMatrixScaling(pOut, sx, sy, sz) (*(Matrix44*)pOut) = GetTransposed44( Matrix44(Matrix34::CreateScale(Vec3(sx,sy,sz))) )
Cry_XOptimise.h
#define mathMatrixTranslation(pOut, x, y, z) (*(Matrix44*)pOut) = GetTransposed44( Matrix44(Matrix34::CreateTranslationMat(Vec3(x,y,z))) )
Cry_XOptimise.h
#define mathVec2NormalizeF(pOut, pV) (*(Vec2*)pOut) = (((Vec2*)pV)->GetNormalizedSafe())
Cry_XOptimise.h
#define mathVec3NormalizeF(pOut, pV) (*(Vec3*)pOut) = (((Vec3*)pV)->GetNormalizedSafe())
Cry_XOptimise.h
#define mathVec3TransformCoordArrayF(pOut, OutStride, pV, VStride, pM, n) mathVec3TransformCoordArray((Vec3*)pOut, OutStride, (Vec3*)pV, VStride, (Matrix44*)pM, n)
Cry_XOptimise.h
#define mathVec3TransformF(pOut, pV, pM) mathVec3Transform( (f32*)pOut, (const f32*)pM, (f32*)pV )
Cry_XOptimise.h
#define mathVec4TransformF(pOut, pV, pM) mathVec4Transform( (f32*)pOut, (const f32*)pM, (f32*)pV )
Cry_XOptimise.h
#define PLANE_NON_AXIAL 3
Cry_GeoOverlap.h
#define PLANE_X 0
Cry_GeoOverlap.h
#define PLANE_Y 1
Cry_GeoOverlap.h
#define PLANE_Z 2
Cry_GeoOverlap.h
#define RAD_EPSILON ( 0.01f )
Cry_Math.h
#define RAD2DEG( a ) ( (a) * (180.0f/gf_PI) )
Cry_Math.h
#define RAD2HCOS( a ) ( cos_tpl( (a*0.5f) ) )
Cry_Math.h
#define SIGN_MASK(x) ((intptr_t)(x) >> ((sizeof(size_t)*8)-1))
Cry_Math.h
#define TANGENT30 0.57735026918962576450914878050196f // tan(30)
Cry_Math.h
tan(30)
#define TANGENT30_2 0.57735026918962576450914878050196f*2 // 2*tan(30)
Cry_Math.h
2*tan(30)
#define VEC_EPSILON ( 0.05f )
Cry_Math.h
#define rnd (((float)cry_rand())/CRY_RAND_MAX) // Floating point random number generator ( 0 -> 1)
Cry_XOptimise.h
Floating point random number generator ( 0 -> 1)