Ejemplo n.º 1
0
 /// <summary>
 ///     Calculates the distance between two points as it follows
 ///     an arc that is defined by a bulge.
 /// </summary>
 /// <param name="v0">The First Vertex</param>
 /// <param name="v1">The Second Vertex</param>
 /// <param name="bulge">The Bulge</param>
 /// <returns>
 ///     A double values that represents the length
 ///     along the arc defined by the two points and
 ///     the Bulge
 /// </returns>
 public static double Distance(Vertex v0, Vertex v1, double bulge)
 {
     return(Bulge.Length(Bulge.Radius(v0, v1, Bulge.Angle(bulge)), Bulge.Angle(bulge)));
 }