File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public static implicit operator Vector3(Position position)
2626 Z = position . Z
2727 } ;
2828 }
29-
29+
3030 public static implicit operator Rotation ( Position position )
3131 {
3232 return new Rotation
@@ -53,6 +53,13 @@ public static implicit operator Position(Vector3 vector3)
5353 [ DataMember ]
5454 public float Z ;
5555
56+ public Position ( )
57+ {
58+ X = 0 ;
59+ Y = 0 ;
60+ Z = 0 ;
61+ }
62+
5663 public Position ( float x , float y , float z )
5764 {
5865 X = x ;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public static implicit operator Vector3(Rotation rotation)
1818 Z = rotation . Yaw
1919 } ;
2020 }
21-
21+
2222 public static implicit operator Position ( Rotation rotation )
2323 {
2424 return new Position
@@ -43,6 +43,13 @@ public static implicit operator Rotation(Vector3 vector3)
4343 public float Pitch ;
4444 public float Yaw ;
4545
46+ public Rotation ( )
47+ {
48+ Roll = 0 ;
49+ Pitch = 0 ;
50+ Yaw = 0 ;
51+ }
52+
4653 public Rotation ( float roll , float pitch , float yaw )
4754 {
4855 Roll = roll ;
You can’t perform that action at this time.
0 commit comments