From e501f3b75b6c395b67b2f3c1f584524eac0db02e Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Wed, 1 Jun 2022 19:49:09 +0100 Subject: [PATCH] [ci skip] Call AddVertex, not AddPoint --- .../Assets/Tests/DebugExIntegrationTests.cs | 18 ++++++++---------- .../Assets/Tests/Drawing/RectIntTests.cs | 1 - 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/X10D.Unity.Tests/Assets/Tests/DebugExIntegrationTests.cs b/X10D.Unity.Tests/Assets/Tests/DebugExIntegrationTests.cs index 43e4014..b45ef09 100644 --- a/X10D.Unity.Tests/Assets/Tests/DebugExIntegrationTests.cs +++ b/X10D.Unity.Tests/Assets/Tests/DebugExIntegrationTests.cs @@ -1,8 +1,6 @@ -using System.Drawing; -using UnityEngine; +using UnityEngine; using X10D.Drawing; using X10D.Unity.Drawing; -using X10D.Unity.Numerics; using Color = UnityEngine.Color; namespace X10D.Unity.Tests @@ -25,17 +23,17 @@ namespace X10D.Unity.Tests DebugEx.DrawEllipse(ellipse, 25, new Vector2(0.0f, 1.5f), Color.white); var hexagon = new PolygonF(); - hexagon.AddPoint(new Vector2(-0.5f, 0.5f)); - hexagon.AddPoint(new Vector2(-0.25f, 1.0f)); - hexagon.AddPoint(new Vector2(0.25f, 1.0f)); - hexagon.AddPoint(new Vector2(0.5f, 0.5f)); - hexagon.AddPoint(new Vector2(0.25f, 0)); - hexagon.AddPoint(new Vector2(-0.25f, 0)); + hexagon.AddVertex(new Vector2(-0.5f, 0.5f)); + hexagon.AddVertex(new Vector2(-0.25f, 1.0f)); + hexagon.AddVertex(new Vector2(0.25f, 1.0f)); + hexagon.AddVertex(new Vector2(0.5f, 0.5f)); + hexagon.AddVertex(new Vector2(0.25f, 0)); + hexagon.AddVertex(new Vector2(-0.25f, 0)); DebugEx.DrawPolygon(hexagon, new Vector2(3.0f, 0.0f), Color.white); var sphere = new Sphere(System.Numerics.Vector3.Zero, 0.5f); DebugEx.DrawSphere(sphere, 25, new Vector2(0.0f, -1.5f), Color.white); - + DebugEx.Assert(true); } } diff --git a/X10D.Unity.Tests/Assets/Tests/Drawing/RectIntTests.cs b/X10D.Unity.Tests/Assets/Tests/Drawing/RectIntTests.cs index e58b3d2..3bf96b6 100644 --- a/X10D.Unity.Tests/Assets/Tests/Drawing/RectIntTests.cs +++ b/X10D.Unity.Tests/Assets/Tests/Drawing/RectIntTests.cs @@ -2,7 +2,6 @@ using NUnit.Framework; using UnityEngine; using UnityEngine.TestTools; -using X10D.Core; using X10D.Unity.Drawing; using Random = System.Random;