/// <summary> /// Writes the given <see cref="Polygon3d"/> to an <see cref="Ibasa.IO.BinaryWriter">. /// </summary> public static void Write(this Ibasa.IO.BinaryWriter writer, Polygon3d polygon) { var array = polygon.ToArray(); writer.Write(array.Length); foreach (var point in array) { writer.Write(point); } }
/// <summary> /// Returns a value that indicates whether two polygons are equal. /// </summary> /// <param name="left">The first polygon to compare.</param> /// <param name="right">The second polygon to compare.</param> /// <returns>true if the left and right are equal; otherwise, false.</returns> public static bool Equals(Polygon3d left, Polygon3d right) { return(left == right); }