SW 중심대학 OSS GIT 서버 박건태, 이승준, 고기완, 이준호 새로운 배포
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

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);
}
}