|
||||||||||
| 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 IStateclone in class Objectpublic Vector convertLocalToWorld(Vector v)
convertLocalToWorld in interface IStatev - Vector in local coordinates.public Vector convertWorldToLocal(Vector v)
convertWorldToLocal in interface IStatev - Vector in local coordinates.public Quaternion getOrientation()
getOrientation in interface IStatepublic Vector getPosition()
getPosition in interface IStatepublic Vector getPreviousPosition()
getPreviousPosition in interface IStatepublic void move(Vector movement)
move in interface IStatepublic Vector orientLocalToWorld(Vector v)
orientLocalToWorld in interface IStatev - Vector in local coordinates.public Vector orientWorldToLocal(Vector v)
orientWorldToLocal in interface IStatev - Vector in world coordinates.public void rotate(Quaternion rotation)
rotate in interface IStatepublic void setOrientation(Quaternion orientation)
setOrientation in interface IStatepublic void setPosition(Vector position)
setPosition in interface IStatepublic 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 |