Serializable
, ReadableVector
Quaternion
, Vector2f
, Vector3f
, Vector4f
public 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 ReadableVector
public abstract float lengthSquared()
lengthSquared
in interface ReadableVector
public 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 ReadableVector
buf
- 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.