32 #ifndef stdtypes_INCLUDE_ONCE 33 #define stdtypes_INCLUDE_ONCE 35 #include <vlCore/config.hpp> 43 typedef unsigned char u8;
47 typedef unsigned short u16;
51 typedef unsigned int u32;
53 typedef long long i64;
55 typedef unsigned long long u64;
64 const double dPi = 3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067982148086513282306647093845;
71 const float fPi = (float)3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067982148086513282306647093845;
84 operator real() {
return mValue; }
96 operator real() {
return mValue; }
103 inline radian::operator
degree() {
return mValue*(real)dRAD_TO_DEG; }
104 inline degree::operator
radian() {
return mValue*(real)dDEG_TO_RAD; }
117 char* b = u.ptr +
sizeof(T) - 1;
const double dPi
Greek Pi constant using double precision.
unsigned long long u64
64 bits unsigned integer
unsigned char u8
8 bits unsigned integer
short i16
16 bits signed integer
double f64
64 bits floating point value
const double dRAD_TO_DEG
Constant to convert radian into degree using double precision.
int i32
32 bits signed integer
Visualization Library main namespace.
const float fPi
Greek Pi constant using float precision.
const double dDEG_TO_RAD
Constant to convert degree into radian using double precision.
Simple class representing quantities in degrees, converts automatically to vl::radian and real...
Simple class representing quantities in radians, converts automatically to vl::degree and real...
unsigned int u32
32 bits unsigned integer
VL_COMPILE_TIME_CHECK(sizeof(i8) *8==8)
char i8
8 bits signed integer
const float fDEG_TO_RAD
Constant to convert degree into radian using float precision.
long long i64
64 bits signed integer
void swapBytes(T &value)
Swaps the byte order of the given object.
unsigned short u16
16 bits unsigned integer
float f32
32 bits floating point value
const float fRAD_TO_DEG
Constant to convert radian into degree using float precision.