mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class DoubleExtensions

    Extension methods for the .Net Double struct

    Inheritance
    Object
    DoubleExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit
    Assembly: cs.temp.dll.dll
    Syntax
    public static class DoubleExtensions

    Methods

    Approximately(Double, Double, Double)

    Checks if two numbers are approximately equal. Similar to Mathf.Approximately(float, float), but the tolerance can be specified.

    Declaration
    public static bool Approximately(this double number, double other, double tolerance)
    Parameters
    Type Name Description
    Double number

    One of the numbers to compare.

    Double other

    The other number to compare.

    Double tolerance

    The amount of tolerance to allow while still considering the numbers approximately equal.

    Returns
    Type Description
    Boolean

    True if the difference between the numbers is less than or equal to the tolerance, false otherwise.

    Approximately(Double, Double, Double)

    Checks if two numbers are approximately equal. Similar to Mathf.Approximately(float, float), but the tolerance can be specified.

    Declaration
    public static bool Approximately(this double number, double other, double tolerance)
    Parameters
    Type Name Description
    Double number

    One of the numbers to compare.

    Double other

    The other number to compare.

    Double tolerance

    The amount of tolerance to allow while still considering the numbers approximately equal.

    Returns
    Type Description
    Boolean

    True if the difference between the numbers is less than or equal to the tolerance, false otherwise.

    In This Article
    • Methods
      • Approximately(Double, Double, Double)
      • Approximately(Double, Double, Double)
    Back to top Generated by DocFX