Package org.vrspace.server.obj
Class Rotation
java.lang.Object
org.vrspace.server.obj.Entity
org.vrspace.server.obj.Embedded
org.vrspace.server.obj.Rotation
Rotation of an can be represented either by 3 or 4 coordinates (euler angles,
quaternions), the server will store and distribute it either way.
- Author:
- joe
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getAngle()
Typically null, if not, rotation is quaterniondouble
getX()
double
getY()
double
getZ()
int
hashCode()
void
Typically null, if not, rotation is quaternionvoid
setX
(double x) void
setY
(double y) void
setZ
(double z) toString()
Methods inherited from class org.vrspace.server.obj.Entity
dispose, getObjectId, setId
-
Constructor Details
-
Rotation
public Rotation(double x, double y, double z) -
Rotation
public Rotation() -
Rotation
-
-
Method Details
-
getX
public double getX() -
getY
public double getY() -
getZ
public double getZ() -
getAngle
Typically null, if not, rotation is quaternion -
setX
public void setX(double x) -
setY
public void setY(double y) -
setZ
public void setZ(double z) -
setAngle
Typically null, if not, rotation is quaternion -
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-