mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-14 11:46:06 +00:00
make Vector2 constructor private
This commit is contained in:
@@ -25,11 +25,15 @@ public class Vector2 implements Cloneable {
|
||||
* @param x X component
|
||||
* @param z Z component
|
||||
*/
|
||||
public Vector2(double x, double z) {
|
||||
private Vector2(double x, double z) {
|
||||
this.x = x;
|
||||
this.z = z;
|
||||
}
|
||||
|
||||
public static Vector2 of(double x, double z) {
|
||||
return new Vector2(x, z);
|
||||
}
|
||||
|
||||
/**
|
||||
* Multiply X and Z components by a value.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user