Class MathUtility | Unity Reflect | 1.1.0-preview.6
docs.unity.cn
    Show / Hide Table of Contents

    Class MathUtility

    Inheritance
    Object
    MathUtility
    Namespace: Unity.Labs.Utils
    Syntax
    public static class MathUtility

    Methods

    Clamp(Double, Double, Double)

    Declaration
    public static double Clamp(double input, double min, double max)
    Parameters
    Type Name Description
    Double input
    Double min
    Double max
    Returns
    Type Description
    Double

    FirstActiveFlagIndex(Int32)

    Declaration
    public static int FirstActiveFlagIndex(int x)
    Parameters
    Type Name Description
    Int32 x
    Returns
    Type Description
    Int32

    IsAxisAligned(Vector3)

    Declaration
    public static bool IsAxisAligned(this Vector3 v)
    Parameters
    Type Name Description
    Vector3 v
    Returns
    Type Description
    Boolean

    IsPositivePowerOfTwo(Int32)

    Declaration
    public static bool IsPositivePowerOfTwo(int x)
    Parameters
    Type Name Description
    Int32 x
    Returns
    Type Description
    Boolean

    IsUndefined(Single)

    Declaration
    public static bool IsUndefined(this float value)
    Parameters
    Type Name Description
    Single value
    Returns
    Type Description
    Boolean

    ShortestAngleDistance(Double, Double, Double, Double)

    Declaration
    public static double ShortestAngleDistance(double start, double end, double halfMax, double max)
    Parameters
    Type Name Description
    Double start
    Double end
    Double halfMax
    Double max
    Returns
    Type Description
    Double

    ShortestAngleDistance(Single, Single, Single, Single)

    Declaration
    public static float ShortestAngleDistance(float start, float end, float halfMax, float max)
    Parameters
    Type Name Description
    Single start
    Single end
    Single halfMax
    Single max
    Returns
    Type Description
    Single
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX