1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-23 01:18:46 +00:00

[ci skip] Call AddVertex, not AddPoint

This commit is contained in:
Oliver Booth 2022-06-01 19:49:09 +01:00
parent 793fa47524
commit e501f3b75b
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634
2 changed files with 8 additions and 11 deletions

View File

@ -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);
}
}

View File

@ -2,7 +2,6 @@
using NUnit.Framework;
using UnityEngine;
using UnityEngine.TestTools;
using X10D.Core;
using X10D.Unity.Drawing;
using Random = System.Random;