diff options
Diffstat (limited to 'Drawing2D/src')
| -rw-r--r-- | Drawing2D/src/Point.cs | 3 | ||||
| -rw-r--r-- | Drawing2D/src/PointD.cs | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/Drawing2D/src/Point.cs b/Drawing2D/src/Point.cs index 72bb2232..8f4066a5 100644 --- a/Drawing2D/src/Point.cs +++ b/Drawing2D/src/Point.cs @@ -8,6 +8,9 @@ namespace Drawing2D { public struct Point : IEquatable<Point>, IEquatable<int> { + public static readonly Point UnitX = new Point (1,0); + public static readonly Point UnitY = new Point (0,1); + public int X, Y; #region CTOR diff --git a/Drawing2D/src/PointD.cs b/Drawing2D/src/PointD.cs index e873c72f..7737cbfc 100644 --- a/Drawing2D/src/PointD.cs +++ b/Drawing2D/src/PointD.cs @@ -6,6 +6,8 @@ using System; namespace Drawing2D { public struct PointD : IEquatable<PointD>, IEquatable<double> { + public static readonly PointD UnitX = new PointD (1,0); + public static readonly PointD UnitY = new PointD (0,1); public double X; public double Y; public PointD (double x, double y) |