-
Notifications
You must be signed in to change notification settings - Fork 0
Mathf
Namespace: Electron2D
Represents the mathf type.
public static class Electron2D.MathfThis type is part of the Electron2D 0.1.0 Preview public API.
Instances of this type are not synchronized. Access them from the thread that owns the object unless the member documentation states otherwise.
This API is available since Electron2D 0.1.0 Preview.
| Member | Kind | Summary |
|---|---|---|
E |
Field | Represents the e value. |
Epsilon |
Field | Represents the epsilon value. |
Pi |
Field | Represents the pi value. |
Tau |
Field | Represents the tau value. |
CeilToInt(System.Single) |
Method | Executes the ceil to int operation. |
Clamp(System.Int32, System.Int32, System.Int32) |
Method | Executes the clamp operation. |
Clamp(System.Single, System.Single, System.Single) |
Method | Executes the clamp operation. |
DegToRad(System.Single) |
Method | Executes the deg to rad operation. |
FloorToInt(System.Single) |
Method | Executes the floor to int operation. |
InverseLerp(System.Single, System.Single, System.Single) |
Method | Executes the inverse lerp operation. |
IsEqualApprox(System.Single, System.Single) |
Method | Checks whether equal approx is true. |
IsFinite(System.Single) |
Method | Checks whether finite is true. |
IsZeroApprox(System.Single) |
Method | Checks whether zero approx is true. |
Lerp(System.Single, System.Single, System.Single) |
Method | Executes the lerp operation. |
MoveToward(System.Single, System.Single, System.Single) |
Method | Executes the move toward operation. |
PosMod(System.Int32, System.Int32) |
Method | Executes the pos mod operation. |
PosMod(System.Single, System.Single) |
Method | Executes the pos mod operation. |
RadToDeg(System.Single) |
Method | Executes the rad to deg operation. |
RoundToInt(System.Single) |
Method | Executes the round to int operation. |
Snapped(System.Single, System.Single) |
Method | Executes the snapped operation. |
Kind: Field
public const System.Single ERepresents the e value.
Use this field as a stable value supplied by the declaring type.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Mathf
Kind: Field
public const System.Single EpsilonRepresents the epsilon value.
Use this field as a stable value supplied by the declaring type.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Mathf
Kind: Field
public const System.Single PiRepresents the pi value.
Use this field as a stable value supplied by the declaring type.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Mathf
Kind: Field
public const System.Single TauRepresents the tau value.
Use this field as a stable value supplied by the declaring type.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Mathf
Kind: Method
public static System.Int32 CeilToInt(System.Single)(System.Single value)Executes the ceil to int operation.
This method follows the validation and lifetime rules of its declaring type.
-
value: The value to use.
The result of the operation.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Mathf
Kind: Method
public static System.Int32 Clamp(System.Int32, System.Int32, System.Int32)(System.Int32 value, System.Int32 min, System.Int32 max)Executes the clamp operation.
This method follows the validation and lifetime rules of its declaring type.
-
value: The value to use. -
min: The min value. -
max: The max value.
The result of the operation.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Mathf
Kind: Method
public static System.Single Clamp(System.Single, System.Single, System.Single)(System.Single value, System.Single min, System.Single max)Executes the clamp operation.
This method follows the validation and lifetime rules of its declaring type.
-
value: The value to use. -
min: The min value. -
max: The max value.
The result of the operation.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Mathf
Kind: Method
public static System.Single DegToRad(System.Single)(System.Single degrees)Executes the deg to rad operation.
This method follows the validation and lifetime rules of its declaring type.
-
degrees: The degrees value.
The result of the operation.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Mathf
Kind: Method
public static System.Int32 FloorToInt(System.Single)(System.Single value)Executes the floor to int operation.
This method follows the validation and lifetime rules of its declaring type.
-
value: The value to use.
The result of the operation.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Mathf
Kind: Method
public static System.Single InverseLerp(System.Single, System.Single, System.Single)(System.Single from, System.Single to, System.Single weight)Executes the inverse lerp operation.
This method follows the validation and lifetime rules of its declaring type.
-
from: The from value. -
to: The to value. -
weight: The weight value.
The result of the operation.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Mathf
Kind: Method
public static System.Boolean IsEqualApprox(System.Single, System.Single)(System.Single a, System.Single b)Checks whether equal approx is true.
This method follows the validation and lifetime rules of its declaring type.
-
a: The a value. -
b: The b value.
true when the condition is met; otherwise, false.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Mathf
Kind: Method
public static System.Boolean IsFinite(System.Single)(System.Single value)Checks whether finite is true.
This method follows the validation and lifetime rules of its declaring type.
-
value: The value to use.
true when the condition is met; otherwise, false.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Mathf
Kind: Method
public static System.Boolean IsZeroApprox(System.Single)(System.Single value)Checks whether zero approx is true.
This method follows the validation and lifetime rules of its declaring type.
-
value: The value to use.
true when the condition is met; otherwise, false.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Mathf
Kind: Method
public static System.Single Lerp(System.Single, System.Single, System.Single)(System.Single from, System.Single to, System.Single weight)Executes the lerp operation.
This method follows the validation and lifetime rules of its declaring type.
-
from: The from value. -
to: The to value. -
weight: The weight value.
The result of the operation.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Mathf
Kind: Method
public static System.Single MoveToward(System.Single, System.Single, System.Single)(System.Single from, System.Single to, System.Single delta)Executes the move toward operation.
This method follows the validation and lifetime rules of its declaring type.
-
from: The from value. -
to: The to value. -
delta: The elapsed time in seconds.
The result of the operation.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Mathf
Kind: Method
public static System.Int32 PosMod(System.Int32, System.Int32)(System.Int32 value, System.Int32 modulo)Executes the pos mod operation.
This method follows the validation and lifetime rules of its declaring type.
-
value: The value to use. -
modulo: The modulo value.
The result of the operation.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Mathf
Kind: Method
public static System.Single PosMod(System.Single, System.Single)(System.Single value, System.Single modulo)Executes the pos mod operation.
This method follows the validation and lifetime rules of its declaring type.
-
value: The value to use. -
modulo: The modulo value.
The result of the operation.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Mathf
Kind: Method
public static System.Single RadToDeg(System.Single)(System.Single radians)Executes the rad to deg operation.
This method follows the validation and lifetime rules of its declaring type.
-
radians: The radians value.
The result of the operation.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Mathf
Kind: Method
public static System.Int32 RoundToInt(System.Single)(System.Single value)Executes the round to int operation.
This method follows the validation and lifetime rules of its declaring type.
-
value: The value to use.
The result of the operation.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Mathf
Kind: Method
public static System.Single Snapped(System.Single, System.Single)(System.Single value, System.Single step)Executes the snapped operation.
This method follows the validation and lifetime rules of its declaring type.
-
value: The value to use. -
step: The step value.
The result of the operation.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Mathf
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.