implement missing methods from last comit

This commit is contained in:
Zoë Gidiere 2023-10-26 12:53:55 -06:00
parent 5d12a560f1
commit c41bf55b7b
2 changed files with 14 additions and 0 deletions

View File

@ -28,6 +28,13 @@ public class Vector2 {
this.x = x;
this.z = z;
}
public static Vector2 zero() {
return ZERO;
}
public static Vector2 unit() {
return UNIT;
}
public static Vector2 of(double x, double z) {
return new Vector2(x, z);

View File

@ -22,6 +22,13 @@ public class Vector3 {
this.y = y;
this.z = z;
}
public static Vector3 zero() {
return ZERO;
}
public static Vector3 unit() {
return UNIT;
}
public static Vector3 of(double x, double y, double z) {
return new Vector3(x, y, z);