From 3cdabfeb4014d0406919ab8a518778011f4704a8 Mon Sep 17 00:00:00 2001 From: EvilMuffinHa Date: Sun, 10 May 2020 11:15:24 -0400 Subject: [PATCH] vector3f --- src/org/hl/engine/math/Vector3f.java | 43 ++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/org/hl/engine/math/Vector3f.java diff --git a/src/org/hl/engine/math/Vector3f.java b/src/org/hl/engine/math/Vector3f.java new file mode 100644 index 0000000..afc8a6b --- /dev/null +++ b/src/org/hl/engine/math/Vector3f.java @@ -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; + } +} +