docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Split

    Split(BezierCurve, float, out BezierCurve, out BezierCurve)

    Decompose a curve into two smaller curves matching the source curve.

    Declaration
    public static void Split(BezierCurve curve, float t, out BezierCurve left, out BezierCurve right)
    Parameters
    Type Name Description
    BezierCurve curve

    The source curve.

    float t

    A mid-point on the source curve defining where the two smaller curves control points meet.

    BezierCurve left

    A curve from the source curve first control point to the mid-point, matching the curvature of the source curve.

    BezierCurve right

    A curve from the mid-point to the source curve fourth control point, matching the curvature of the source 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)