Ejemplo n.º 1
0
 /// <summary>
 /// Y-coordinate on the arc segment that corresponds to the x-coordinate given.
 /// </summary>
 /// <param name="x">X-coordinate for which a y-coordinate is desired.</param>
 /// <returns></returns>
 public override double Y(double x)
 {
     return(NMath.Sqrt(Radius.Squared() - (x - Center.X).Squared()) + Center.Y);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// X-coordinate on the arc segment that corresponds to the y-coordinate given.
 /// </summary>
 /// <param name="y">Y-coordinate for which an x-coordinate is desired.</param>
 /// <returns></returns>
 public override double X(double y)
 {
     return(NMath.Sqrt(Radius.Squared() - (y - Center.Y).Squared()) + Center.X);
 }