Package org.vrspace.server.obj
Class Quaternion
- java.lang.Object
-
- org.vrspace.server.obj.Quaternion
-
public class Quaternion extends Object
Easier than Rotation to propagate quaternions, as it follows quaternion naming convention (w rather than angle).- Author:
- joe
-
-
Constructor Summary
Constructors Constructor Description Quaternion()
Quaternion(double x, double y, double z, double w)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
double
getW()
double
getX()
double
getY()
double
getZ()
int
hashCode()
void
setW(double w)
void
setX(double x)
void
setY(double y)
void
setZ(double z)
String
toString()
-
-
-
Method Detail
-
getX
public double getX()
-
getY
public double getY()
-
getZ
public double getZ()
-
getW
public double getW()
-
setX
public void setX(double x)
-
setY
public void setY(double y)
-
setZ
public void setZ(double z)
-
setW
public void setW(double w)
-
canEqual
protected boolean canEqual(Object other)
-
-