Class MathUtility | Unity Reflect | 1.0.0-preview.11
docs.unity3d.com
    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 © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023