public abstract class Vector extends java.lang.Object implements java.io.Serializable, ReadableVector
| Modifier | Constructor and Description |
|---|---|
protected |
Vector()
Constructor for Vector.
|
| Modifier and Type | Method and Description |
|---|---|
float |
length() |
abstract float |
lengthSquared() |
abstract Vector |
load(java.nio.FloatBuffer buf)
Load this vector from a FloatBuffer
|
abstract Vector |
negate()
Negate a vector
|
Vector |
normalise()
Normalise this vector
|
abstract Vector |
scale(float scale)
Scale this vector
|
abstract Vector |
store(java.nio.FloatBuffer buf)
Store this vector in a FloatBuffer
|
public final float length()
length in interface ReadableVectorpublic abstract float lengthSquared()
lengthSquared in interface ReadableVectorpublic abstract Vector load(java.nio.FloatBuffer buf)
buf - The buffer to load it from, at the current positionpublic abstract Vector negate()
public final Vector normalise()
public abstract Vector store(java.nio.FloatBuffer buf)
store in interface ReadableVectorbuf - The buffer to store it in, at the current positionpublic abstract Vector scale(float scale)
scale - The scale factorCopyright © 2002-2009 lwjgl.org. All Rights Reserved.