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
Blerp(float, float, float, float, float, float)
Bilinear interpolates the values.
Declaration
public static float Blerp(float c00, float c10, float c01, float c11, float tx, float ty)
Parameters
Type | Name | Description |
---|---|---|
float | c00 | The Blerp value 0. |
float | c10 | The Blerp value 2. |
float | c01 | The Blerp value 1. |
float | c11 | The Blerp value 3. |
float | tx | The reference X value. |
float | ty | The reference y value. |
Returns
Type | Description |
---|---|
float | The interpolated value. |
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. |