コード例 #1
0
 /// <summary>Returns the frenet-serret (curvature-based) orientation of curve at the given point t, where the Z direction is tangent to the curve.
 /// The X axis will point to the inner arc of the current curvature</summary>
 /// <param name="t">The t-value along the curve to sample</param>
 [MethodImpl(INLINE)] public static Quaternion GetArcOrientation <T>(this T curve, float t) where T : IParamCurve2Diff <Vector3> => Mathfs.GetArcOrientation(curve.GetDerivative(t), curve.GetSecondDerivative(t));