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

4 years ago
  1. using UnityEngine;
  2. namespace ARLocation
  3. {
  4. /// <summary>
  5. /// A struct holding a pair of point/tangent values.
  6. /// </summary>
  7. public struct CurvePointData
  8. {
  9. public Vector3 point;
  10. public Vector3 tangent;
  11. }
  12. public abstract class Curve
  13. {
  14. public abstract Vector3 GetPoint(float u);
  15. public abstract CurvePointData GetPointAndTangent(float u);
  16. public abstract Vector3[] Sample(int n);
  17. public abstract float EstimateLength(int n = 100);
  18. public abstract float GetParameterForLength(float s);
  19. public abstract Vector3 GetPointAtLength(float s);
  20. public abstract CurvePointData GetPointAndTangentAtLength(float s);
  21. }
  22. }