namespace Yw.WinFrmUI.HydroL3d
{
///
///
///
public class Point3d
{
///
///
///
public Point3d() { }
///
///
///
public Point3d(float x, float y, float z)
{
this.X = x;
this.Y = y;
this.Z = z;
}
///
///
///
public Point3d(double x, double y, double z)
{
this.X = (float)x;
this.Y = (float)y;
this.Z = (float)z;
}
///
/// x
///
public float X { get; set; }
///
/// y
///
public float Y { get; set; }
///
/// z
///
public float Z { get; set; }
///
/// 是否无效
///
public bool InValid()
{
if (this.X.Invalid())
{
return true;
}
if (this.Y.Invalid())
{
return true;
}
if (this.Z.Invalid())
{
return true;
}
return false;
}
///
/// 是否有效
///
public bool Valid()
{
return !InValid();
}
}
}