Code example for FloatBuffer

Methods: get

0
 
	/* (non-Javadoc) 
	 * @see org.lwjgl.vector.Vector#load(FloatBuffer) 
	 */ 
	public Vector load(FloatBuffer buf) {
		x = buf.get();
		y = buf.get();
		z = buf.get();
		return this;
	} 
 
	/* (non-Javadoc) 
	 * @see org.lwjgl.vector.Vector#scale(float) 
	 */ 
	public Vector scale(float scale) {
 
		x *= scale;
		y *= scale;
		z *= scale;
 
		return this;