|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IState
Defines methods required by a simple state of an object. The orientation and position relate object coordinates to world coordinates. Units should be consistent: length, time.
Method Summary | |
---|---|
Object |
clone()
Return a clone of this instance. |
Vector |
convertLocalToWorld(Vector v)
Convert the given vector from local coordinates to world coordinates. |
Vector |
convertWorldToLocal(Vector v)
Convert the given vector from world coordinates to local coordinates. |
Quaternion |
getOrientation()
Return the orientation quaternion. |
Vector |
getPosition()
Return the position vector. |
Vector |
getPreviousPosition()
Return the previous position vector. |
void |
move(Vector movement)
Move using the given vector. |
Vector |
orientLocalToWorld(Vector v)
Orient the given vector from local coordinates to world coordinates. |
Vector |
orientWorldToLocal(Vector v)
Orient the given vector from world coordinates to local coordinates. |
void |
rotate(Quaternion rotation)
Rotate using the given quaternion. |
void |
setOrientation(Quaternion orientation)
Set the orientation. |
void |
setPosition(Vector position)
Set the position. |
Method Detail |
---|
void setOrientation(Quaternion orientation)
Quaternion getOrientation()
void setPosition(Vector position)
Vector getPosition()
Vector getPreviousPosition()
Object clone()
Vector convertLocalToWorld(Vector v)
v
- Vector in local coordinates.Vector convertWorldToLocal(Vector v)
v
- Vector in local coordinates.void move(Vector movement)
Vector orientLocalToWorld(Vector v)
v
- Vector in local coordinates.Vector orientWorldToLocal(Vector v)
v
- Vector in world coordinates.void rotate(Quaternion rotation)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |