aboutsummaryrefslogtreecommitdiffstatsci
path: root/Drawing2D
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-12-04 20:27:22 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-12-04 20:27:22 +0100
commit2b974cc30f568a82bb0b1da9c82339ab943ac841 (patch)
treeff463aeb523c14bf9f5c1c2ea80f0a90cc887236 /Drawing2D
parenta3d4977a3cb6d7e4ce4f9627842398e6ab25d9a8 (diff)
Diffstat (limited to 'Drawing2D')
-rw-r--r--Drawing2D/Drawing2D.csproj2
-rw-r--r--Drawing2D/src/Point.cs3
-rw-r--r--Drawing2D/src/PointD.cs2
3 files changed, 6 insertions, 1 deletions
diff --git a/Drawing2D/Drawing2D.csproj b/Drawing2D/Drawing2D.csproj
index 33b36ca2..bd40f7a5 100644
--- a/Drawing2D/Drawing2D.csproj
+++ b/Drawing2D/Drawing2D.csproj
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <TargetFramework>netcoreapp3.0</TargetFramework>
+ <TargetFramework>netstandard2.1</TargetFramework>
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
<AssemblyVersion>1.0.0</AssemblyVersion>
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)