コード例 #1
0
 /// <summary>Returns a pseudovector at the given t-value on the curve, where the magnitude is the curvature in radians per distance unit, and the direction is the axis of curvature</summary>
 /// <param name="t">The t-value along the curve to sample</param>
 [MethodImpl(INLINE)] public static Vector3 GetCurvature <T>(this T curve, float t) where T : IParamCurve2Diff <Vector3> => Mathfs.GetCurvature(curve.GetDerivative(t), curve.GetSecondDerivative(t));