mirror of https://github.com/oliverbooth/X10D
[ci skip] Call AddVertex, not AddPoint
This commit is contained in:
parent
793fa47524
commit
e501f3b75b
|
@ -1,8 +1,6 @@
|
||||||
using System.Drawing;
|
using UnityEngine;
|
||||||
using UnityEngine;
|
|
||||||
using X10D.Drawing;
|
using X10D.Drawing;
|
||||||
using X10D.Unity.Drawing;
|
using X10D.Unity.Drawing;
|
||||||
using X10D.Unity.Numerics;
|
|
||||||
using Color = UnityEngine.Color;
|
using Color = UnityEngine.Color;
|
||||||
|
|
||||||
namespace X10D.Unity.Tests
|
namespace X10D.Unity.Tests
|
||||||
|
@ -25,12 +23,12 @@ namespace X10D.Unity.Tests
|
||||||
DebugEx.DrawEllipse(ellipse, 25, new Vector2(0.0f, 1.5f), Color.white);
|
DebugEx.DrawEllipse(ellipse, 25, new Vector2(0.0f, 1.5f), Color.white);
|
||||||
|
|
||||||
var hexagon = new PolygonF();
|
var hexagon = new PolygonF();
|
||||||
hexagon.AddPoint(new Vector2(-0.5f, 0.5f));
|
hexagon.AddVertex(new Vector2(-0.5f, 0.5f));
|
||||||
hexagon.AddPoint(new Vector2(-0.25f, 1.0f));
|
hexagon.AddVertex(new Vector2(-0.25f, 1.0f));
|
||||||
hexagon.AddPoint(new Vector2(0.25f, 1.0f));
|
hexagon.AddVertex(new Vector2(0.25f, 1.0f));
|
||||||
hexagon.AddPoint(new Vector2(0.5f, 0.5f));
|
hexagon.AddVertex(new Vector2(0.5f, 0.5f));
|
||||||
hexagon.AddPoint(new Vector2(0.25f, 0));
|
hexagon.AddVertex(new Vector2(0.25f, 0));
|
||||||
hexagon.AddPoint(new Vector2(-0.25f, 0));
|
hexagon.AddVertex(new Vector2(-0.25f, 0));
|
||||||
DebugEx.DrawPolygon(hexagon, new Vector2(3.0f, 0.0f), Color.white);
|
DebugEx.DrawPolygon(hexagon, new Vector2(3.0f, 0.0f), Color.white);
|
||||||
|
|
||||||
var sphere = new Sphere(System.Numerics.Vector3.Zero, 0.5f);
|
var sphere = new Sphere(System.Numerics.Vector3.Zero, 0.5f);
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.TestTools;
|
using UnityEngine.TestTools;
|
||||||
using X10D.Core;
|
|
||||||
using X10D.Unity.Drawing;
|
using X10D.Unity.Drawing;
|
||||||
using Random = System.Random;
|
using Random = System.Random;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue