convert VB to C#
This commit is contained in:
39
Pilz.Drawing/PointD.cs
Normal file
39
Pilz.Drawing/PointD.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
|
||||
namespace Pilz.Drawing
|
||||
{
|
||||
public class PointD
|
||||
{
|
||||
public double X { get; set; }
|
||||
public double Y { get; set; }
|
||||
|
||||
public PointD()
|
||||
{
|
||||
X = 0d;
|
||||
Y = 0d;
|
||||
}
|
||||
|
||||
public PointD(double x, double y)
|
||||
{
|
||||
X = x;
|
||||
Y = y;
|
||||
}
|
||||
|
||||
public static PointD Empty
|
||||
{
|
||||
get
|
||||
{
|
||||
return new PointD();
|
||||
}
|
||||
}
|
||||
|
||||
public static bool operator ==(PointD val1, PointD val2)
|
||||
{
|
||||
return val1.X == val2.X && val1.Y == val2.Y;
|
||||
}
|
||||
|
||||
public static bool operator !=(PointD val1, PointD val2)
|
||||
{
|
||||
return val1.X != val2.X || val1.Y != val2.Y;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user