コード例 #1
0
 /// <summary>Returns the frenet-serret (curvature-based) normal direction at the given t-value on the curve</summary>
 /// <param name="t">The t-value along the curve to sample</param>
 [MethodImpl(INLINE)] public static Vector3 GetArcNormal <T>(this T curve, float t) where T : IParamCurve2Diff <Vector3> => Mathfs.GetArcNormal(curve.GetDerivative(t), curve.GetSecondDerivative(t));