docs.unity.cn

Splines 2.5.2

Search Results for

    Show / Hide Table of Contents

    Method EvaluateUpVector

    EvaluateUpVector(float)

    Evaluates the up vector of a point, t, on a spline in world space.

    Declaration
    public float3 EvaluateUpVector(float t)
    Parameters
    Type Name Description
    float t

    A value between 0 and 1 representing a percentage of entire spline.

    Returns
    Type Description
    float3

    The computed up direction.

    EvaluateUpVector(int, float)

    Evaluates the up vector of a point, t, on a spline at an index, splineIndex, in world space.

    Declaration
    public float3 EvaluateUpVector(int splineIndex, float t)
    Parameters
    Type Name Description
    int splineIndex

    The index of the Spline to evaluate.

    float t

    A value between 0 and 1 representing a percentage of entire spline.

    Returns
    Type Description
    float3

    The computed up direction.

    EvaluateUpVector<T>(T, float)

    Evaluates the up vector of a point, t, on a given spline, in world space.

    Declaration
    public float3 EvaluateUpVector<T>(T spline, float t) where T : ISpline
    Parameters
    Type Name Description
    T spline

    The Spline to evaluate.

    float t

    A value between 0 and 1 representing a percentage of entire spline.

    Returns
    Type Description
    float3

    The computed up direction.

    Type Parameters
    Name Description
    T

    The spline type.


    对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答
    In This Article
    • EvaluateUpVector(float)
    • EvaluateUpVector(int, float)
    • EvaluateUpVector<T>(T, float)
    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)