|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectunc.cdva.utils.PdsBean
public class PdsBean
Bean that stores the position, direction and scaling vectors of an item
Constructor Summary | |
---|---|
PdsBean()
Instantiates a pds bean with default data. |
|
PdsBean(javax.vecmath.Vector3f pos,
javax.vecmath.Vector3f dir,
javax.vecmath.Vector3f scale)
Instantiates a pds bean with data provided by this constructor's parameters. |
Method Summary | |
---|---|
javax.vecmath.Vector3f |
getDirection()
|
javax.vecmath.Vector3f |
getPosition()
|
javax.vecmath.Vector3f |
getScaling()
|
void |
setDirection(javax.vecmath.Vector3f direction)
Sets the direction, the vector is normalized for you. |
void |
setPosition(javax.vecmath.Vector3f position)
|
void |
setScaling(javax.vecmath.Vector3f scaling)
|
java.lang.String |
toString()
Returns a string which holds the position, direction, and scaling of this object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PdsBean(javax.vecmath.Vector3f pos, javax.vecmath.Vector3f dir, javax.vecmath.Vector3f scale)
pos
- The position vector.dir
- The direction vector.scale
- The scaling vector.public PdsBean()
Method Detail |
---|
public javax.vecmath.Vector3f getDirection()
public void setDirection(javax.vecmath.Vector3f direction)
direction
- The direction to set, can be any arbitrary
vector.public javax.vecmath.Vector3f getPosition()
public void setPosition(javax.vecmath.Vector3f position)
position
- The position to set.public javax.vecmath.Vector3f getScaling()
public void setScaling(javax.vecmath.Vector3f scaling)
scaling
- The scaling to set.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |