Class SplineMath
Assorted utility functions for math equations commonly used when working with Splines.
Inherited Members
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). |