public BindableVector3DModel RoundToAxis()
{
Vector3D v = new Vector3D();
if (Math.Abs(_vector.X) > Math.Abs(_vector.Y) && Math.Abs(_vector.X) > Math.Abs(_vector.Z))
{
v = new Vector3D(Math.Sign(_vector.X), 0, 0);
}
else if (Math.Abs(_vector.Y) > Math.Abs(_vector.X) && Math.Abs(_vector.Y) > Math.Abs(_vector.Z))
{
v = new Vector3D(0, Math.Sign(_vector.Y), 0);
}
else if (Math.Abs(_vector.Z) > Math.Abs(_vector.X) && Math.Abs(_vector.Z) > Math.Abs(_vector.Y))
{
v = new Vector3D(0, 0, Math.Sign(_vector.Z));
}
return new BindableVector3DModel(v);
}