docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface ISpline

    ISpline defines the interface from which Spline types inherit.

    Inherited Members
    IReadOnlyList<BezierKnot>.this[int]
    IReadOnlyCollection<BezierKnot>.Count
    IEnumerable<BezierKnot>.GetEnumerator()
    Namespace: UnityEngine.Splines
    Assembly: solution.dll
    Syntax
    public interface ISpline : IReadOnlyList<BezierKnot>, IReadOnlyCollection<BezierKnot>, IEnumerable<BezierKnot>, IEnumerable

    Properties

    Name Description
    Closed

    Whether the spline is open (has a start and end point) or closed (forms an unbroken loop).

    Methods

    Name Description
    GetCurve(int)

    Get a BezierCurve from a knot index.

    GetCurveInterpolation(int, float)

    Return the interpolation ratio (0 to 1) corresponding to a distance on a BezierCurve. Distance is relative to the curve.

    GetCurveLength(int)

    Return the length of a curve.

    GetCurveUpVector(int, float)

    Return the up vector for a t ratio on the curve. Contrary to EvaluateUpVector<T>(T, float), this method is trying to used cached values when possible for better performance when accessing to these values regularly.

    GetLength()

    Return the sum of all curve lengths, accounting for Closed state.

    Extension Methods

    SplineDataHandles.DataPointHandles<TSpline, TData>(TSpline, SplineData<TData>, bool)
    SplineDataHandles.DataPointHandles<TSpline, TData>(TSpline, SplineData<TData>, bool, int)
    SplineUtility.CalculateLength<T>(T, float4x4)
    SplineUtility.CalculateUpVector<T>(T, float)
    SplineUtility.ConvertIndexUnit<T>(T, float, PathIndexUnit)
    SplineUtility.ConvertIndexUnit<T>(T, float, PathIndexUnit, PathIndexUnit)
    SplineUtility.CurveToSplineT<T>(T, float)
    SplineUtility.EvaluateAcceleration<T>(T, float)
    SplineUtility.EvaluateCurvatureCenter<T>(T, float)
    SplineUtility.EvaluateCurvature<T>(T, float)
    SplineUtility.EvaluatePosition<T>(T, float)
    SplineUtility.EvaluateTangent<T>(T, float)
    SplineUtility.EvaluateUpVector<T>(T, float)
    SplineUtility.Evaluate<T>(T, float, out float3, out float3, out float3)
    SplineUtility.GetBounds<T>(T)
    SplineUtility.GetBounds<T>(T, float4x4)
    SplineUtility.GetCurveCount<T>(T)
    SplineUtility.GetPointAtLinearDistance<T>(T, float, float, out float)
    SplineUtility.NextIndex<T>(T, int)
    SplineUtility.Next<T>(T, int)
    SplineUtility.PreviousIndex<T>(T, int)
    SplineUtility.Previous<T>(T, int)
    SplineUtility.SplineToCurveT<T>(T, float, out float)
    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)