1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-14 04:55:42 +00:00

[ci skip] Refer to points as vertices

This commit is contained in:
Oliver Booth 2022-06-01 19:41:43 +01:00
parent d91a3d2a8c
commit 88dcbdc3c6
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634

View File

@ -138,14 +138,14 @@ public class Polyhedron : IEquatable<Polyhedron>
/// <returns>The converted polyhedron.</returns> /// <returns>The converted polyhedron.</returns>
public static implicit operator Polyhedron(Polygon polygon) public static implicit operator Polyhedron(Polygon polygon)
{ {
var points = new List<Vector3>(); List<Vector3> vertices = new List<Vector3>();
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);
} }
/// <summary> /// <summary>
@ -155,14 +155,14 @@ public class Polyhedron : IEquatable<Polyhedron>
/// <returns>The converted polyhedron.</returns> /// <returns>The converted polyhedron.</returns>
public static implicit operator Polyhedron(PolygonF polygon) public static implicit operator Polyhedron(PolygonF polygon)
{ {
var points = new List<Vector3>(); List<Vector3> vertices = new List<Vector3>();
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);
} }
/// <summary> /// <summary>