package de.gaalop.visualizer.engines.lwjgl;
/**
* Represents a 3-vector in float precision
* @author Christian Steinmetz
*/
public class Vec3f {
public float x;
public float y;
public float z;
public Vec3f(float x, float y, float z) {
this.x = x;
this.y = y;
this.z = z;
}
@Override
public String toString() {
return x+","+y+","+z;
}
/**
* Sets the x,y,z value
* @param x The x value
* @param y The y value
* @param z The z value
*/
public void set(float x, float y, float z) {
this.x = x;
this.y = y;
this.z = z;
}
}