|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.math.State
public class State
Provides simple state of an object.
Constructor Summary | |
---|---|
State()
|
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. |
String |
toString()
Return a string representation of this object. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public State()
Method Detail |
---|
public Object clone()
clone
in interface IState
clone
in class Object
public Vector convertLocalToWorld(Vector v)
convertLocalToWorld
in interface IState
v
- Vector in local coordinates.public Vector convertWorldToLocal(Vector v)
convertWorldToLocal
in interface IState
v
- Vector in local coordinates.public Quaternion getOrientation()
getOrientation
in interface IState
public Vector getPosition()
getPosition
in interface IState
public Vector getPreviousPosition()
getPreviousPosition
in interface IState
public void move(Vector movement)
move
in interface IState
public Vector orientLocalToWorld(Vector v)
orientLocalToWorld
in interface IState
v
- Vector in local coordinates.public Vector orientWorldToLocal(Vector v)
orientWorldToLocal
in interface IState
v
- Vector in world coordinates.public void rotate(Quaternion rotation)
rotate
in interface IState
public void setOrientation(Quaternion orientation)
setOrientation
in interface IState
public void setPosition(Vector position)
setPosition
in interface IState
public String toString()
toString
in class Object
|
||||||||||
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 |