package engine.math; public class Vector3f { public float x, y, z; public Vector3f(){ x = 0.0f; y = 0.0f; z = 0.0f; } public Vector3f(float x, float y){ this.x = x; this.y = y; this.z = 0.0f; } public Vector3f(float x, float y, float z){ this.x = x; this.y = y; this.z = z; } public Vector3f divXY(float div){ return new Vector3f(this.x / div, this.y / div, this.z); } public Vector3f divXYZ(float div){ return new Vector3f(this.x / div, this.y / div, this.z / div); } }