Definitions of functions, types and variables.
uint32 BoxSides[];
Cry_Camera.h
const f64 g_PI = 3.14159265358979323846264338327950288419716939937510;
Cry_Math.h
pi
const f64 g_PI2 = 3.14159265358979323846264338327950288419716939937510*2.0;
Cry_Math.h
2*pi
const f32 gf_PI = f32(3.14159265358979323846264338327950288419716939937510);
Cry_Math.h
Definitions
const f32 gf_PI2 = f32(3.14159265358979323846264338327950288419716939937510*2.0);
Cry_Math.h
int32 inc_mod3[] = {1,2,0}, dec_mod3[]={2,0,1};
Cry_Math.h
const f64 sqrt2 = 1.4142135623730950488016887242097;
Cry_Math.h
const f64 sqrt3 = 1.7320508075688772935274463415059;
Cry_Math.h
bool AABB_AABB2D(const AABB&, const AABB&);
Cry_GeoOverlap.h
float cry_frand();
Cry_Math.h
Generates random floating number in the closed interval [0,1]. Random float between 0 and 1 inclusive.
unsigned int cry_rand();
Cry_Math.h
Random function to be used instead of rand()
unsigned int cry_rand32();
Cry_Math.h
Generates random integer in full 32-bit range.
inline bool Lineseg_AABB2D(const Lineseg&, const AABB&);
Cry_GeoOverlap.h
bool Lineseg_Triangle(const Lineseg & lineseg, const Vec3 & v0, const Vec3 & v1, const Vec3 & v2);
Cry_GeoDistance.h
template <typename F> F Point_Lineseg2DSq(Vec3_tplp, Lineseg lineseg, F & fT);
Cry_GeoOverlap.h
Returns squared distance from a point to a line segment and also the "t value" (from 0 to 1) of the closest point on the line segment, ignoring the z coordinates
template <typename F> F Point_TriangleSq(const Vec3_tpl& p, const Triangle_tpl & t);
Cry_GeoOverlap.h
The squared distance.
Distance: Point_Triangle. Calculate the closest distance of a point to a triangle in 3d-space.
float result = Distance::Point_Triangle( pos, triangle );
typedef Color_tplColorB;
Cry_Color.h
0, 255
typedef Color_tpl<float> ColorF;
Cry_Color.h
0.0, 1.0
typedef int index_t;
primitives.h