docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SplineMath

    Assorted utility functions for math equations commonly used when working with Splines.

    Inheritance
    object
    SplineMath
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEngine.Splines
    Assembly: solution.dll
    Syntax
    public static class SplineMath

    Methods

    Name Description
    DistancePointLine(float3, float3, float3)

    Gets the distance from a point to a line segment.

    PointLineNearestPoint(float3, float3, float3, out float)

    Returns the nearest point on a finite line segment to a point.

    RayLineDistance(float3, float3, float3, float3)

    Returns the shortest distance between a ray and line segment as a direction and magnitude.

    RayLineNearestPoint(float3, float3, float3, float3)

    Returns the nearest points between a ray and line segment.

    RayLineNearestPoint(float3, float3, float3, float3, out float, out float)

    Returns the nearest points on a ray and a line segment to one another.

    RayLineParameter(float3, float3, float3, float3)

    Returns the parameterization of a ray line projection. The parameter will be negative if the nearest point between the ray/line is negative to 'lineOrigin', and greater than 1 if nearest intersection is past the end off the line segment (lineOrigin + lineDir).

    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)