From 59001ad80acf97b7a2bb8359f8803d17dd6d5b67 Mon Sep 17 00:00:00 2001 From: Evan Hemsley Date: Fri, 6 Sep 2019 13:00:35 -0700 Subject: [PATCH] fix rename gone bad --- Bonk/AABB.cs | 12 ++++++------ Bonk/Line.cs | 12 ++++++------ Bonk/Polygon.cs | 8 ++++---- Bonk/Rectangle.cs | 8 ++++---- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/Bonk/AABB.cs b/Bonk/AABB.cs index 46b67a1..5386117 100644 --- a/Bonk/AABB.cs +++ b/Bonk/AABB.cs @@ -16,16 +16,16 @@ namespace MoonTools.Core.Bonk public int Width { get { return MaxX - MinX; } } public int Height { get { return MaxY - MinY; } } - public static AABB FromTransform2DedVertices(IEnumerable vertices, Transform2D transform) + public static AABB FromTransformedVertices(IEnumerable vertices, Transform2D transform) { - var Transform2DedVertices = vertices.Select(vertex => Vector2.Transform(vertex, transform.TransformMatrix)); + var TransformedVertices = vertices.Select(vertex => Vector2.Transform(vertex, transform.TransformMatrix)); return new AABB { - MinX = (int)Math.Round(Transform2DedVertices.Min(vertex => vertex.X)), - MinY = (int)Math.Round(Transform2DedVertices.Min(vertex => vertex.Y)), - MaxX = (int)Math.Round(Transform2DedVertices.Max(vertex => vertex.X)), - MaxY = (int)Math.Round(Transform2DedVertices.Max(vertex => vertex.Y)) + MinX = (int)Math.Round(TransformedVertices.Min(vertex => vertex.X)), + MinY = (int)Math.Round(TransformedVertices.Min(vertex => vertex.Y)), + MaxX = (int)Math.Round(TransformedVertices.Max(vertex => vertex.X)), + MaxY = (int)Math.Round(TransformedVertices.Max(vertex => vertex.Y)) }; } diff --git a/Bonk/Line.cs b/Bonk/Line.cs index 0617b07..e35dd6e 100644 --- a/Bonk/Line.cs +++ b/Bonk/Line.cs @@ -15,16 +15,16 @@ namespace MoonTools.Core.Bonk public Vector2 Support(Vector2 direction, Transform2D transform) { - var Transform2DedStart = Vector2.Transform(vertices[0], transform.TransformMatrix); - var Transform2DedEnd = Vector2.Transform(vertices[1], transform.TransformMatrix); - return Vector2.Dot(Transform2DedStart, direction) > Vector2.Dot(Transform2DedEnd, direction) ? - Transform2DedStart : - Transform2DedEnd; + var TransformedStart = Vector2.Transform(vertices[0], transform.TransformMatrix); + var TransformedEnd = Vector2.Transform(vertices[1], transform.TransformMatrix); + return Vector2.Dot(TransformedStart, direction) > Vector2.Dot(TransformedEnd, direction) ? + TransformedStart : + TransformedEnd; } public AABB AABB(Transform2D Transform2D) { - return Bonk.AABB.FromTransform2DedVertices(vertices, Transform2D); + return Bonk.AABB.FromTransformedVertices(vertices, Transform2D); } public bool Equals(IShape2D other) diff --git a/Bonk/Polygon.cs b/Bonk/Polygon.cs index f7dbd05..d9ef67f 100644 --- a/Bonk/Polygon.cs +++ b/Bonk/Polygon.cs @@ -21,12 +21,12 @@ namespace MoonTools.Core.Bonk foreach (var vertex in Vertices) { - var Transform2DedVertex = Vector2.Transform(vertex, transform.TransformMatrix); - var distance = Vector2.Dot(Transform2DedVertex, direction); + var TransformedVertex = Vector2.Transform(vertex, transform.TransformMatrix); + var distance = Vector2.Dot(TransformedVertex, direction); if (distance > furthest) { furthest = distance; - furthestVertex = Transform2DedVertex; + furthestVertex = TransformedVertex; } } @@ -35,7 +35,7 @@ namespace MoonTools.Core.Bonk public AABB AABB(Transform2D Transform2D) { - return Bonk.AABB.FromTransform2DedVertices(Vertices, Transform2D); + return Bonk.AABB.FromTransformedVertices(Vertices, Transform2D); } public bool Equals(IShape2D other) diff --git a/Bonk/Rectangle.cs b/Bonk/Rectangle.cs index d533f47..e880119 100644 --- a/Bonk/Rectangle.cs +++ b/Bonk/Rectangle.cs @@ -36,12 +36,12 @@ namespace MoonTools.Core.Bonk foreach (var v in vertices) { - var Transform2DedVertex = Vector2.Transform(v, transform.TransformMatrix); - var distance = Vector2.Dot(Transform2DedVertex, direction); + var TransformedVertex = Vector2.Transform(v, transform.TransformMatrix); + var distance = Vector2.Dot(TransformedVertex, direction); if (distance > furthestDistance) { furthestDistance = distance; - furthestVertex = Transform2DedVertex; + furthestVertex = TransformedVertex; } } @@ -50,7 +50,7 @@ namespace MoonTools.Core.Bonk public AABB AABB(Transform2D Transform2D) { - return Bonk.AABB.FromTransform2DedVertices(vertices, Transform2D); + return Bonk.AABB.FromTransformedVertices(vertices, Transform2D); } public bool Equals(IShape2D other)