summaryrefslogtreecommitdiff
path: root/grapher/VectorXY.cs
diff options
context:
space:
mode:
authora1xd <[email protected]>2020-07-31 17:56:46 -0400
committerGitHub <[email protected]>2020-07-31 17:56:46 -0400
commit1fcbb0fa51dbc35958d211026e4d40384a049049 (patch)
treeefb65bf3f305f376ea75f4f687b08bf8998c020f /grapher/VectorXY.cs
parentMerge pull request #6 from a1xd/st-refactor (diff)
parentShow no settings for off, remove unused class for PR (diff)
downloadrawaccel-1fcbb0fa51dbc35958d211026e4d40384a049049.tar.xz
rawaccel-1fcbb0fa51dbc35958d211026e4d40384a049049.zip
Merge pull request #7 from JacobPalecki/GUI
Add GUI
Diffstat (limited to 'grapher/VectorXY.cs')
-rw-r--r--grapher/VectorXY.cs33
1 files changed, 33 insertions, 0 deletions
diff --git a/grapher/VectorXY.cs b/grapher/VectorXY.cs
new file mode 100644
index 0000000..53c9e68
--- /dev/null
+++ b/grapher/VectorXY.cs
@@ -0,0 +1,33 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace grapher
+{
+ public class VectorXY
+ {
+ public VectorXY(double x)
+ {
+ X = x;
+ Y = x;
+ }
+
+ public VectorXY(double x, double y)
+ {
+ X = x;
+ Y = y;
+ }
+
+ public double X { get; set; }
+
+ public double Y { get; set; }
+
+ public void SetBoth(double value)
+ {
+ X = value;
+ Y = value;
+ }
+ }
+}