From 88dcbdc3c611a2e4cb3f4a1f0a53cc6c52d8e57b Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Wed, 1 Jun 2022 19:41:43 +0100 Subject: [PATCH] [ci skip] Refer to points as vertices --- X10D/src/Drawing/Polyhedron.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/X10D/src/Drawing/Polyhedron.cs b/X10D/src/Drawing/Polyhedron.cs index e2e9450..a839a06 100644 --- a/X10D/src/Drawing/Polyhedron.cs +++ b/X10D/src/Drawing/Polyhedron.cs @@ -138,14 +138,14 @@ public class Polyhedron : IEquatable /// The converted polyhedron. public static implicit operator Polyhedron(Polygon polygon) { - var points = new List(); + List vertices = new List(); - foreach (Point point in polygon.Vertices) + foreach (Point vertex in polygon.Vertices) { - points.Add(new Vector3(point.X, point.Y, 0)); + vertices.Add(new Vector3(vertex.X, vertex.Y, 0)); } - return new Polyhedron(points); + return new Polyhedron(vertices); } /// @@ -155,14 +155,14 @@ public class Polyhedron : IEquatable /// The converted polyhedron. public static implicit operator Polyhedron(PolygonF polygon) { - var points = new List(); + List vertices = new List(); - foreach (PointF point in polygon.Vertices) + foreach (PointF vertex in polygon.Vertices) { - points.Add(new Vector3(point.X, point.Y, 0)); + vertices.Add(new Vector3(vertex.X, vertex.Y, 0)); } - return new Polyhedron(points); + return new Polyhedron(vertices); } ///