TriLib
Search Results for

    Show / Hide Table of Contents

    Class MathUtils

    Represents a series of math utility methods.

    Inheritance
    object
    MathUtils
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    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.

    In this article
    Back to top Generated by DocFX