|
static bool | IsApproximatelyEqual (this float floatA, float floatB, float precission=(float) Math3d.vectorPrecission) |
| Checks whether two floats are approximately the same with given precission More...
|
|
static IEnumerator< float > | LerpInTime (this float start, float end, float time) |
| Lineary Lerps between start and end within time , using Time.deltaTime. Guarantees returning end at last step, More...
|
|
static float | ToRadians (this float angleInDegree) |
| Converts Degrees into Radians More...
|
|
static float | ToDegrees (this float angleInRadians) |
| Converts Radians into Degrees More...
|
|
◆ IsApproximatelyEqual()
static bool MathfExtensions.IsApproximatelyEqual |
( |
this float |
floatA, |
|
|
float |
floatB, |
|
|
float |
precission = (float) Math3d.vectorPrecission |
|
) |
| |
|
static |
Checks whether two floats are approximately the same with given precission
- Parameters
-
- Returns
- true if two floats are approximately equal with given precission
- See also
- Mathf.Approximately
◆ LerpInTime()
static IEnumerator< float > MathfExtensions.LerpInTime |
( |
this float |
start, |
|
|
float |
end, |
|
|
float |
time |
|
) |
| |
|
static |
Lineary Lerps between start and end within time , using Time.deltaTime. Guarantees returning end at last step,
- Parameters
-
start | Value to start |
end | Value to end |
time | Time to pass |
- Returns
- IEnumerator<float> with statet behaviour
◆ ToDegrees()
static float MathfExtensions.ToDegrees |
( |
this float |
angleInRadians | ) |
|
|
static |
Converts Radians into Degrees
- Parameters
-
angleInRadians | The Angle in Radians |
- Returns
- The Angle in Degrees
◆ ToRadians()
static float MathfExtensions.ToRadians |
( |
this float |
angleInDegree | ) |
|
|
static |
Converts Degrees into Radians
- Parameters
-
angleInDegree | The Angle in Degrees |
- Returns
- The Angle in Radians
The documentation for this class was generated from the following file:
- D:/Users/marco/Dokuments/OneDrive/FAU/Informatik/!UFrameIT/FrameIT/MaZiFAU/Assets/Scripts/Utility/Extensions/MathfExtensions.cs