diff options
| author | Jacob Palecki <[email protected]> | 2020-07-29 19:35:57 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-07-29 19:35:57 -0700 |
| commit | 621ab8d23d10c892a18c39234b24266fd90b90fa (patch) | |
| tree | 7c46133ef24dc74b02437fb61616ece0163fb64f /grapher/VectorXY.cs | |
| parent | Take all variables through GUI (diff) | |
| download | rawaccel-621ab8d23d10c892a18c39234b24266fd90b90fa.tar.xz rawaccel-621ab8d23d10c892a18c39234b24266fd90b90fa.zip | |
Separate classes into files, add Field class for text box state
Diffstat (limited to 'grapher/VectorXY.cs')
| -rw-r--r-- | grapher/VectorXY.cs | 33 |
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; + } + } +} |