mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-03 00:15:35 +00:00
implement missing methods from last comit
This commit is contained in:
parent
5d12a560f1
commit
c41bf55b7b
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user