CalculateLength() 공개 정적인 메소드

Calculates the length of the specified bezier curve.
public static CalculateLength ( IList points, float precision ) : float
points IList The points.
precision float The precision value.
리턴 float
 /// <summary>
 /// Calculates the length of this bezier curve.
 /// </summary>
 /// <param name="precision">The precision.</param>
 /// <returns>Length of curve.</returns>
 /// <remarks>The precision gets better as the <paramref name="precision"/>
 /// value gets smaller.</remarks>
 public float CalculateLength(float precision)
 {
     return(BezierCurve.CalculateLength(points, precision, Parallel));
 }
 /// <summary>
 /// Calculates the length of the specified bezier curve.
 /// </summary>
 /// <param name="points">The points.</param>
 /// <param name="precision">The precision value.</param>
 /// <returns>The precision gets better as the <paramref name="precision"/>
 /// value gets smaller.</returns>
 public static float CalculateLength(IList <Vector2> points, float precision)
 {
     return(BezierCurve.CalculateLength(points, precision, 0.0f));
 }
예제 #3
0
 public float CalculateLength(float precision)
 {
     return(BezierCurve.CalculateLength((IList <Vector2>) this.points, precision, this.Parallel));
 }