com.robrohan.ruin.math3d
Class Pos

java.lang.Object
  |
  +--com.robrohan.ruin.math3d.Pos
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
MotionPos

public class Pos
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
Pos(float x, float y, float z, float dir)
           
 
Method Summary
 Pos getCopy()
           
 float getDir()
           
 float getX()
           
 float getY()
           
 float getZ()
           
 void move(float xa, float ya, float za, float dira)
          the main funtion to move the object around poition + direction
 void moveRelative(float xa, float za)
          used move with adjusting the Y axis (the up down axis)
 void moveTo(float x, float y, float z, float dir)
          a quick placement.
 void moveTo(Pos pos)
          a quick placement.
 void setDir(float dir)
           
 void setX(float x)
           
 void setY(float y)
           
 void setZ(float z)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pos

public Pos(float x,
           float y,
           float z,
           float dir)
Method Detail

getX

public float getX()

getY

public float getY()

getZ

public float getZ()

getDir

public float getDir()

setX

public void setX(float x)

setY

public void setY(float y)

setZ

public void setZ(float z)

setDir

public void setDir(float dir)

move

public void move(float xa,
                 float ya,
                 float za,
                 float dira)
the main funtion to move the object around poition + direction


moveTo

public void moveTo(Pos pos)
a quick placement. sets postion


moveTo

public void moveTo(float x,
                   float y,
                   float z,
                   float dir)
a quick placement. sets postion


moveRelative

public void moveRelative(float xa,
                         float za)
used move with adjusting the Y axis (the up down axis)


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getCopy

public Pos getCopy()