ssmith.opengl
Class Vector
java.lang.Object
ssmith.opengl.Vector
public class Vector
- extends java.lang.Object
|
Field Summary |
float |
x
|
float |
y
|
float |
z
|
|
Constructor Summary |
Vector()
|
Vector(float x,
float y,
float z)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
x
public float x
y
public float y
z
public float z
Vector
public Vector()
Vector
public Vector(float x,
float y,
float z)
copyFrom
public Vector copyFrom(Vector v)
isWithin
public boolean isWithin(Vector v,
float dist)
add
public Vector add(Vector v)
subtract
public Vector subtract(Vector v)
normalise
public void normalise(float amt)
tendTowards
public void tendTowards(Vector v,
float speed)
- This is a bit crappy and needs re-writing.
- Parameters:
v - speed -