OldBlueWater/BlueWater/Assets/NWH/Dynamic Water Physics 2/Scripts/Lib/MIConvexHull/Vertex.cs
2023-12-19 11:31:29 +09:00

27 lines
540 B
C#

using UnityEngine;
namespace NWH.DWP2.MiConvexHull
{
public class Vertex : IVertex
{
public Vertex(double x, double y, double z)
{
Position = new double[3] {x, y, z,};
}
public Vertex(Vector3 ver)
{
Position = new double[3] {ver.x, ver.y, ver.z,};
}
public double[] Position { get; set; }
public Vector3 ToVec()
{
return new Vector3((float) Position[0], (float) Position[1], (float) Position[2]);
}
}
}