|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lwjgl.util.vector.Vector
public abstract class Vector
Base class for vectors.
| Constructor Summary | |
|---|---|
protected |
Vector()
Constructor for Vector. |
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Vector()
| Method Detail |
|---|
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 position
public 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 position
public abstract Vector scale(float scale)
scale - The scale factor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||