Example #1
0
        /// <summary>
        /// Writes the given <see cref="Polygon3l"/> to an <see cref="Ibasa.IO.BinaryWriter">.
        /// </summary>
        public static void Write(this Ibasa.IO.BinaryWriter writer, Polygon3l polygon)
        {
            var array = polygon.ToArray();

            writer.Write(array.Length);
            foreach (var point in array)
            {
                writer.Write(point);
            }
        }
Example #2
0
 /// <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(Polygon3l left, Polygon3l right)
 {
     return(left == right);
 }