sculpto
|
Classes | |
struct | degrees |
class | matr3 |
class | matr3_data |
class | matr4 |
class | matr4_data |
struct | radians |
class | vec2 |
class | vec3 |
class | vec4 |
Functions | |
template<typename T > | |
void | to_json (json &Json, const vec2< T > &Vector) |
template<typename T > | |
void | to_json (json &Json, const vec3< T > &Vector) |
template<typename T > | |
void | to_json (json &Json, const vec4< T > &Vector) |
template<typename T > | |
void | to_json (json &Json, const matr3< T > &Matrix) |
template<typename T > | |
void | to_json (json &Json, const matr4< T > &Matrix) |
template<typename T > | |
void | from_json (const json &Json, vec2< T > &Vector) |
template<typename T > | |
void | from_json (const json &Json, vec3< T > &Vector) |
template<typename T > | |
void | from_json (const json &Json, vec4< T > &Vector) |
template<typename T > | |
void | from_json (const json &Json, matr3< T > &Matrix) |
template<typename T > | |
void | from_json (const json &Json, matr4< T > &Matrix) |
template<typename T > | |
T | Min (T Num1, T Num2) |
template<typename T > | |
T | Max (T Num1, T Num2) |
template<typename T > | |
T | Clamp (T Num, T Min=0, T Max=1) |
template<typename T > | |
T | Lerp (T Start, T End, T Current) |
template<typename T > | |
T | Rnd0 () |
template<typename T > | |
T | Rnd (T Min=0, T Max=1) |
Variables | |
const float | E = 2.7182818284590f |
const float | LOG2E = 1.4426950408889f |
const float | LOG10E = 0.4342944819032f |
const float | LN2 = 0.6931471805599f |
const float | LN10 = 2.3025850929940f |
const float | PI = 3.1415926535897f |
const float | PI_2 = 1.5707963267948f |
const float | PI_4 = 0.7853981633974f |
const float | REV_1_PI = 0.3183098861837f |
const float | REV_2_PI = 0.6366197723675f |
const float | REV_2_SQRTPI = 1.1283791670955f |
const float | SQRT2 = 1.4142135623730f |
const float | SQRT1_2 = 0.7071067811865f |
Common types serialization/deserialization to json format functions.
T scl::math::Clamp | ( | T | Num, |
T | Min = 0 , |
||
T | Max = 1 |
||
) |
Num | - number to be clamped. |
Min | - lower clipping limit. |
Max | - upper clipping limit. |
Definition at line 77 of file math_common.h.
Definition at line 47 of file scene_serializer.h.
Definition at line 52 of file scene_serializer.h.
Definition at line 32 of file scene_serializer.h.
Definition at line 37 of file scene_serializer.h.
Definition at line 42 of file scene_serializer.h.
T scl::math::Lerp | ( | T | Start, |
T | End, | ||
T | Current | ||
) |
Start | - first point value. |
End | - second point value. |
Current | - interpolation value [0;1]. |
Definition at line 91 of file math_common.h.
T scl::math::Max | ( | T | Num1, |
T | Num2 | ||
) |
Num1,Num2 | - numbers to biggest one be chosen from. |
Definition at line 61 of file math_common.h.
T scl::math::Min | ( | T | Num1, |
T | Num2 | ||
) |
Num1,Num2 | - numbers to smallest one be chosen from. |
Definition at line 49 of file math_common.h.
T scl::math::Rnd | ( | T | Min = 0 , |
T | Max = 1 |
||
) |
min | - lower bound of random number. |
Max | - upper bound of random number. |
Definition at line 116 of file math_common.h.
T scl::math::Rnd0 | ( | ) |
None. |
Definition at line 103 of file math_common.h.
Definition at line 29 of file scene_serializer.h.
Definition at line 30 of file scene_serializer.h.
Definition at line 26 of file scene_serializer.h.
Definition at line 27 of file scene_serializer.h.
Definition at line 28 of file scene_serializer.h.
const float scl::math::E = 2.7182818284590f |
Math common constants.
Definition at line 28 of file math_common.h.
const float scl::math::LN10 = 2.3025850929940f |
Definition at line 32 of file math_common.h.
const float scl::math::LN2 = 0.6931471805599f |
Definition at line 31 of file math_common.h.
const float scl::math::LOG10E = 0.4342944819032f |
Definition at line 30 of file math_common.h.
const float scl::math::LOG2E = 1.4426950408889f |
Definition at line 29 of file math_common.h.
const float scl::math::PI = 3.1415926535897f |
Definition at line 33 of file math_common.h.
const float scl::math::PI_2 = 1.5707963267948f |
Definition at line 34 of file math_common.h.
const float scl::math::PI_4 = 0.7853981633974f |
Definition at line 35 of file math_common.h.
const float scl::math::REV_1_PI = 0.3183098861837f |
Definition at line 36 of file math_common.h.
const float scl::math::REV_2_PI = 0.6366197723675f |
Definition at line 37 of file math_common.h.
const float scl::math::REV_2_SQRTPI = 1.1283791670955f |
Definition at line 38 of file math_common.h.
const float scl::math::SQRT1_2 = 0.7071067811865f |
Definition at line 40 of file math_common.h.
const float scl::math::SQRT2 = 1.4142135623730f |
Definition at line 39 of file math_common.h.