using System;
namespace Plankton
{
public class PlanktonVertex
{
public int OutgoingHalfedge;
internal PlanktonVertex()
{
this.OutgoingHalfedge = -1;
}
internal PlanktonVertex(float x, float y, float z)
{
OutgoingHalfedge = -1;
this.X = x;
this.Y = y;
this.Z = z;
}
internal PlanktonVertex(double x, double y, double z)
: this((float) x, (float) y, (float) z)
{
// empty
}
public float X { get; set; }
public float Y { get; set; }
public float Z { get; set; }
public PlanktonXYZ ToXYZ()
{
return new PlanktonXYZ(this.X, this.Y, this.Z);
}
public static PlanktonVertex Unset
{
get { return new PlanktonVertex() { OutgoingHalfedge = -1 }; }
}
public bool IsUnused { get { return (this.OutgoingHalfedge < 0); } }
[Obsolete()]
public bool Dead { get { return this.IsUnused; } }
}
}