Search Results for

    Show / Hide Table of Contents

    Class FloatExtensions

    Extension methods for flaot type.

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

    Methods

    Distinct(float, float, float)

    Distincts the specified a.

    Declaration
    public static bool Distinct(this float a, float b, float maxRelativeError = 5.9604645E-06)
    Parameters
    Type Name Description
    float a

    First float.

    float b

    Second float.

    float maxRelativeError

    The max relative error.

    Returns
    Type Description
    bool

    true if they are distinct.

    Equal(float, float, float)

    Equals the specified a.

    Declaration
    public static bool Equal(this float a, float b, float maxRelativeError = 5.9604645E-06)
    Parameters
    Type Name Description
    float a

    First float.

    float b

    Second float.

    float maxRelativeError

    The max relative error.

    Returns
    Type Description
    bool

    true if they equal.

    In This Article
    Back to top
    Generated by DocFX