|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectseltar.motion.Vector
| Constructor Summary | |
Vector()
Constructor Sets Length and Direction to 0 |
|
Vector(float L,
float D)
Constructor Sets Length and Direction to given variables |
|
Vector(Point P)
Constructor Sets Length and Direction to given Point |
|
| Method Summary | |
Vector |
addVector(Vector V)
Adds a Vector (Velocity & Direction) to Vector v |
float |
dot(Vector V)
Returns the dotproduct of this Vector and given Vector V |
Point |
getCoords()
Gets Velocity-Coordinates |
float |
getDirection()
Gets Direction |
float |
getVelocity()
Gets Velocity |
float |
getVX()
Gets Velocity-X |
float |
getVY()
Gets Velocity-Y |
Vector |
multiply(float k)
Multiply Velocity & Direction by given variable |
Vector |
multiply(float k,
float j)
Multiply Velocity & Direction by given variable |
Vector |
normal()
Returns the normal of this Vector |
void |
setDirection(float D)
Sets Direction (radians) |
void |
setVelocity(float L)
Sets Velocity |
void |
setVelocity(float X,
float Y)
Sets Velocity |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Vector()
public Vector(float L,
float D)
public Vector(Point P)
| Method Detail |
public float getDirection()
public float getVelocity()
public float getVX()
public float getVY()
public Point getCoords()
public void setDirection(float D)
D - Direction in radianspublic void setVelocity(float L)
L - Velocity
public void setVelocity(float X,
float Y)
X - Velocity-XY - Velocity-Ypublic Vector addVector(Vector V)
V - Vector Vpublic Vector multiply(float k)
k - Multiplier
public Vector multiply(float k,
float j)
k - X-Multiplierj - Y-Multiplierpublic float dot(Vector V)
public Vector normal()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||