Tree ptototype changes
This commit is contained in:
parent
188ccd7855
commit
9231618094
3 changed files with 119 additions and 29 deletions
|
@ -281,8 +281,12 @@ public class SplineHelper {
|
|||
}
|
||||
|
||||
public static void scale(List<Vector3f> spline, float scale) {
|
||||
scale(spline, scale, scale, scale);
|
||||
}
|
||||
|
||||
public static void scale(List<Vector3f> spline, float x, float y, float z) {
|
||||
for (Vector3f v: spline) {
|
||||
v.set(v.getX() * scale, v.getY() * scale, v.getZ() * scale);
|
||||
v.set(v.getX() * x, v.getY() * y, v.getZ() * z);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue