docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct DataPoint<TDataType>

    A pair containing an interpolation ratio and {TDataType} value.

    Implements
    IComparable<DataPoint<TDataType>>
    IComparable<float>
    IDataPoint
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: UnityEngine.Splines
    Assembly: solution.dll
    Syntax
    [Serializable]
    public struct DataPoint<TDataType> : IComparable<DataPoint<TDataType>>, IComparable<float>, IDataPoint
    Type Parameters
    Name Description
    TDataType

    The type of data this data point stores.

    Constructors

    Name Description
    DataPoint(float, TDataType)

    Create a new Data Point with interpolation ratio and value.

    Properties

    Name Description
    Index

    The interpolation ratio relative to a spline. How this value is interpolated depends on the PathIndexUnit specified by SplineData<T>.

    Value

    A value to store with this Data Point.

    Methods

    Name Description
    CompareTo(float)

    Compare DataPoint Index values.

    CompareTo(DataPoint<TDataType>)

    Compare DataPoint Index values.

    ToString()

    A summary of the DataPoint time and value.

    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)