The U4DNumerical provides numerical robustness in floating point comparison, rounding errors and random number generation.
More...
The U4DNumerical provides numerical robustness in floating point comparison, rounding errors and random number generation.
◆ areEqual()
bool U4DEngine::U4DNumerical::areEqual |
( |
float |
uNumber1, |
|
|
float |
uNumber2, |
|
|
float |
uEpsilon |
|
) |
| |
Method which compares if two floating value are equal.
- Parameters
-
uNumber1 | Floating value to compare |
uNumber2 | Floating value to compare |
uEpsilon | Epsilon used in comparison |
- Returns
- Returns true if two floating value are equal
◆ areEqualAbs()
bool U4DEngine::U4DNumerical::areEqualAbs |
( |
float |
uNumber1, |
|
|
float |
uNumber2, |
|
|
float |
uEpsilon |
|
) |
| |
Method which compares if two floating value are equal using absolute comparison.
- Parameters
-
uNumber1 | Floating value to compare |
uNumber2 | Floating value to compare |
uEpsilon | Epsilon used in comparison |
- Returns
- Returns true if two floating value are equal
◆ areEqualRel()
bool U4DEngine::U4DNumerical::areEqualRel |
( |
float |
uNumber1, |
|
|
float |
uNumber2, |
|
|
float |
uEpsilon |
|
) |
| |
Method which compares if two floating value are equal using relative comparison.
- Parameters
-
uNumber1 | Floating value to compare |
uNumber2 | Floating value to compare |
uEpsilon | Epsilon used in comparison |
- Returns
- Returns true if two floating value are equal
◆ convertToSIMD() [1/5]
Converts 3x3 matrix to SIMD format.
Converts 3x3 matrix to SIMD format used by the GPU shaders
- Parameters
-
- Returns
- Matrix in SIMD format
◆ convertToSIMD() [2/5]
Converts 4x4 matrix to SIMD format.
Converts 4x4 matrix to SIMD format used by the GPU shaders
- Parameters
-
- Returns
- Matrix in SIMD format
◆ convertToSIMD() [3/5]
Converts vector of 2 dimensions into SIMD format.
Converts vector of 2n dimentsions into SIMD format
- Parameters
-
uVector | 2n vector dimension |
- Returns
- vector in SIMD format
◆ convertToSIMD() [4/5]
Converts vector of 3 dimensions into SIMD format.
Converts vector of 3n dimentsions into SIMD format
- Parameters
-
uVector | 3n vector dimension |
- Returns
- vector in SIMD format
◆ convertToSIMD() [5/5]
Converts vector of 4 dimensions into SIMD format.
Converts vector of 4n dimentsions into SIMD format
- Parameters
-
uVector | 4n vector dimension |
- Returns
- vector in SIMD format
◆ remapValue()
Sets property used to determine if entity is within frustum.
If the property is set, the entity is rendered, else is ignored
- Parameters
-
uValue | true for is within the frustum, false if is not |