vector3f
This commit is contained in:
parent
0c6ccbbb42
commit
3cdabfeb40
43
src/org/hl/engine/math/Vector3f.java
Normal file
43
src/org/hl/engine/math/Vector3f.java
Normal file
|
@ -0,0 +1,43 @@
|
|||
package org.hl.engine.math;
|
||||
|
||||
|
||||
public class Vector3f {
|
||||
private float x, y, z;
|
||||
|
||||
public Vector3f(float x, float y, float z) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.z = z;
|
||||
}
|
||||
|
||||
public void setVector(float x, float y, float z) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.z = z;
|
||||
}
|
||||
|
||||
public float getX() {
|
||||
return x;
|
||||
}
|
||||
|
||||
public void setX(float x) {
|
||||
this.x = x;
|
||||
}
|
||||
|
||||
public float getY() {
|
||||
return y;
|
||||
}
|
||||
|
||||
public void setY(float y) {
|
||||
this.y = y;
|
||||
}
|
||||
|
||||
public float getZ() {
|
||||
return z;
|
||||
}
|
||||
|
||||
public void setZ(float z) {
|
||||
this.z = z;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user