docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ApproximateLength

    ApproximateLength(BezierCurve)

    Calculate the approximate length of a BezierCurve. This is less accurate than CalculateLength(BezierCurve, int), but can be significantly faster. Use this when accuracy is not paramount and the curve control points are changing frequently.

    Declaration
    public static float ApproximateLength(BezierCurve curve)
    Parameters
    Type Name Description
    BezierCurve curve

    The BezierCurve to calculate length.

    Returns
    Type Description
    float

    An estimate of the length of a curve.

    In This Article
    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)