You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
723 B
32 lines
723 B
using UnityEngine;
|
|
|
|
|
|
namespace ARLocation
|
|
{
|
|
/// <summary>
|
|
/// A struct holding a pair of point/tangent values.
|
|
/// </summary>
|
|
public struct CurvePointData
|
|
{
|
|
public Vector3 point;
|
|
public Vector3 tangent;
|
|
}
|
|
|
|
|
|
public abstract class Curve
|
|
{
|
|
public abstract Vector3 GetPoint(float u);
|
|
|
|
public abstract CurvePointData GetPointAndTangent(float u);
|
|
|
|
public abstract Vector3[] Sample(int n);
|
|
|
|
public abstract float EstimateLength(int n = 100);
|
|
|
|
public abstract float GetParameterForLength(float s);
|
|
|
|
public abstract Vector3 GetPointAtLength(float s);
|
|
|
|
public abstract CurvePointData GetPointAndTangentAtLength(float s);
|
|
}
|
|
}
|