mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-02-16 10:30:42 +00:00
make Vector3 constructor private
This commit is contained in:
@@ -135,7 +135,7 @@ public class Vector2 implements Cloneable {
|
||||
}
|
||||
|
||||
public Vector3 extrude(double y) {
|
||||
return new Vector3(this.x, y, this.z);
|
||||
return Vector3.of(this.x, y, this.z);
|
||||
}
|
||||
|
||||
public Vector2 add(double x, double z) {
|
||||
|
||||
@@ -20,7 +20,7 @@ public class Vector3 implements Cloneable {
|
||||
private double y;
|
||||
private double z;
|
||||
|
||||
public Vector3(double x, double y, double z) {
|
||||
private Vector3(double x, double y, double z) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.z = z;
|
||||
|
||||
Reference in New Issue
Block a user