Class MathUtils
Represents a series of math utility methods.
Inherited Members
Namespace: TriLibCore.Utils
Assembly: TriLibCore.dll
Syntax
public static class MathUtils
Fields
Axis
Represents the 3D axis as an array.
Declaration
public static readonly Vector3[] Axis
Field Value
| Type | Description |
|---|---|
| Vector3[] |
Methods
CalculateTangentSign(Vector3, Vector3)
Calculates the given tangent value sign. (w component)
Declaration
public static float CalculateTangentSign(Vector3 normal, Vector3 tangent)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | normal | The normal vector. |
| Vector3 | tangent | The tangent vector. |
Returns
| Type | Description |
|---|---|
| float | The tangent sign. |