docs.unity.cn

XR Core Utilities 2.3.0

Search Results for

    Show / Hide Table of Contents

    Method Clamp

    Clamp(double, double, double)

    Constrains a value between a minimum and a maximum.

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

    The input number.

    double min

    The minimum output.

    double max

    The maximum output.

    Returns
    Type Description
    double

    The input number, clamped between min and max (inclusive).

    In This Article
    • Clamp(double, double, double)
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)