Serializable, ReadableVectorQuaternion, Vector2f, Vector3f, Vector4fpublic abstract class Vector extends Object implements Serializable, ReadableVector
| Modifier | Constructor | Description |
|---|---|---|
protected |
Vector() |
Constructor for Vector.
|
| Modifier and Type | Method | Description |
|---|---|---|
float |
length() |
|
abstract float |
lengthSquared() |
|
abstract Vector |
load(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(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(FloatBuffer buf)
buf - The buffer to load it from, at the current positionpublic abstract Vector negate()
public final Vector normalise()
public abstract Vector store(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.