Skip to content

Commit

Permalink
Change X,Y,Z fields in Vectors to properties
Browse files Browse the repository at this point in the history
Signed-off-by: yesseruser <[email protected]>
  • Loading branch information
yesseruser committed Feb 10, 2024
1 parent 4ac06ed commit 183e81c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions yTools/Vectors/Vectors.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
{
public struct Vector2
{
public double X, Y;
public double X { get; set; }
public double Y { get; set; }

public Vector2(double x, double y)
{
Expand All @@ -20,7 +21,9 @@ public static explicit operator System.Numerics.Vector2(Vector2 vector2) =>

public struct Vector3
{
public double X, Y, Z;
public double X { get; set; }
public double Y { get; set; }
public double Z { get; set; }

public Vector3(double x, double y, double z)
{
Expand Down

0 comments on commit 183e81c

Please sign in to comment.