Beispiel #1
0
 /// <summary>
 /// Returns a value that indicates whether two circlees are equal.
 /// </summary>
 /// <param name="left">The first circle to compare.</param>
 /// <param name="right">The second circle to compare.</param>
 /// <returns>true if the left and right are equal; otherwise, false.</returns>
 public static bool Equals(Circled left, Circled right)
 {
     return(left == right);
 }
Beispiel #2
0
 public static bool Contains(Circled circle, Point2d point)
 {
     return(Vector.AbsoluteSquared(circle.Center - point) <= circle.Radius * circle.Radius);
 }
Beispiel #3
0
 /// <summary>
 /// Writes the given <see cref="Circled"/> to an <see cref="Ibasa.IO.BinaryWriter">.
 /// </summary>
 public static void Write(this Ibasa.IO.BinaryWriter writer, Circled circle)
 {
     writer.Write(circle.X);
     writer.Write(circle.Y);
     writer.Write(circle.Radius);
 }