Search Results for

    Show / Hide Table of Contents

    Class GMath

    Math utility class for CoreLib (UnityEngine-independent).

    Inheritance
    object
    GMath
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9
    Assembly: Glitch9.dll
    Syntax
    public static class GMath

    Methods

    | Edit this page View Source

    Abs(float)

    Declaration
    public static float Abs(float value)
    Parameters
    Type Name Description
    float value
    Returns
    Type Description
    float
    | Edit this page View Source

    Approximately(float, float, float)

    Declaration
    public static bool Approximately(float a, float b, float epsilon = 1E-06)
    Parameters
    Type Name Description
    float a
    float b
    float epsilon
    Returns
    Type Description
    bool
    | Edit this page View Source

    CeilToInt(float)

    Declaration
    public static int CeilToInt(float value)
    Parameters
    Type Name Description
    float value
    Returns
    Type Description
    int
    | Edit this page View Source

    Clamp(int, int, int)

    Declaration
    public static int Clamp(int value, int min, int max)
    Parameters
    Type Name Description
    int value
    int min
    int max
    Returns
    Type Description
    int
    | Edit this page View Source

    Clamp(float, float, float)

    Declaration
    public static float Clamp(float value, float min, float max)
    Parameters
    Type Name Description
    float value
    float min
    float max
    Returns
    Type Description
    float
    | Edit this page View Source

    Clamp01(float)

    Declaration
    public static float Clamp01(float value)
    Parameters
    Type Name Description
    float value
    Returns
    Type Description
    float
    | Edit this page View Source

    FloorToInt(float)

    Declaration
    public static int FloorToInt(float value)
    Parameters
    Type Name Description
    float value
    Returns
    Type Description
    int
    | Edit this page View Source

    InverseLerp(float, float, float)

    Declaration
    public static float InverseLerp(float a, float b, float value)
    Parameters
    Type Name Description
    float a
    float b
    float value
    Returns
    Type Description
    float
    | Edit this page View Source

    IsBetween(float, float, float)

    Declaration
    public static bool IsBetween(float value, float min, float max)
    Parameters
    Type Name Description
    float value
    float min
    float max
    Returns
    Type Description
    bool
    | Edit this page View Source

    IsZero(float, float)

    Declaration
    public static bool IsZero(float value, float epsilon = 1E-06)
    Parameters
    Type Name Description
    float value
    float epsilon
    Returns
    Type Description
    bool
    | Edit this page View Source

    Lerp(float, float, float)

    Declaration
    public static float Lerp(float a, float b, float t)
    Parameters
    Type Name Description
    float a
    float b
    float t
    Returns
    Type Description
    float
    | Edit this page View Source

    Max(float, float)

    Declaration
    public static float Max(float a, float b)
    Parameters
    Type Name Description
    float a
    float b
    Returns
    Type Description
    float
    | Edit this page View Source

    Min(float, float)

    Declaration
    public static float Min(float a, float b)
    Parameters
    Type Name Description
    float a
    float b
    Returns
    Type Description
    float
    | Edit this page View Source

    Remap(float, float, float, float, float)

    Declaration
    public static float Remap(float inMin, float inMax, float outMin, float outMax, float value)
    Parameters
    Type Name Description
    float inMin
    float inMax
    float outMin
    float outMax
    float value
    Returns
    Type Description
    float
    | Edit this page View Source

    RoundToInt(float)

    Declaration
    public static int RoundToInt(float value)
    Parameters
    Type Name Description
    float value
    Returns
    Type Description
    int
    | Edit this page View Source

    Sign(float)

    Declaration
    public static int Sign(float value)
    Parameters
    Type Name Description
    float value
    Returns
    Type Description
    int
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation