|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcz.cuni.amis.pogamut.base3d.worldview.object.Rotation
public class Rotation

Rotation within the world. Rotation is represented as yaw, roll and pitch. FIXME[js]: Add working methods and consider imports from Tuple3d.
| Nested Class Summary | |
|---|---|
static class |
Rotation.Order
Used for conversions in from Location into Rotation and vice versa |
static class |
Rotation.PropertyEditor
Property editor for Rotation. |
| Field Summary | |
|---|---|
double |
pitch
Rotation pitch. |
double |
roll
Rotation roll. |
double |
yaw
Rotation yaw. |
| Constructor Summary | |
|---|---|
Rotation()
Creates rotation with all values set to zeroes. |
|
Rotation(double pitch,
double yaw,
double roll)
Creates rotation with specified values. |
|
Rotation(Rotation rotation)
Copy constructor. |
|
| Method Summary | |
|---|---|
Rotation |
clone()
|
static Matrix3d |
constructXYRot(double angle)
Useful methods from Rotation->Location conversions. |
static Matrix3d |
constructXZRot(double angle)
Useful methods from Rotation->Location conversions. |
static Matrix3d |
constructYZRot(double angle)
Useful methods from Rotation->Location conversions. |
static double |
ExpInterp(double a,
double b,
double alpha)
Exponentially interpolates between 2 doubles with alpha as strength. |
double |
getPitch()
Rotation pitch. |
Point3d |
getPoint3d()
Retreives javax.vecmath.Point3d representation of the rotation. |
double |
getRoll()
Rotation roll. |
Rotation |
getRotation()
Retreives the rotation itself to implement IRotable. |
double |
getYaw()
Rotation yaw. |
static double |
LinearInterp(double a,
double b,
double alpha)
Linearly interpolates between 2 doubles with alpha as strength. |
static double |
LogInterp(double a,
double b,
double alpha)
Logarithmically interpolates between 2 doubles with alpha as strength. |
Rotation |
RotationExpInterp(Rotation b,
double alpha)
Exponentially interpolates between 2 rotations with alpha as strength. |
static Rotation |
RotationExpInterp(Rotation a,
Rotation b,
double alpha)
Exponentially interpolates between 2 rotations with alpha as strength. |
Rotation |
RotationLinearInterp(Rotation b,
double alpha)
Linearly interpolates between 2 rotations with alpha as strength. |
static Rotation |
RotationLinearInterp(Rotation a,
Rotation b,
double alpha)
Linearly interpolates between 2 rotations with alpha as strength. |
Rotation |
RotationLogInterp(Rotation b,
double alpha)
Logarithmically interpolates between 2 rotations with alpha as strength. |
static Rotation |
RotationLogInterp(Rotation a,
Rotation b,
double alpha)
Logarithmically interpolates between 2 rotations with alpha as strength. |
Rotation |
setTo(double pitch,
double yaw,
double roll)
Set this rotation to passed values. |
Rotation |
setTo(Rotation r)
Set this rotation to values from r. |
Location |
toLocation()
Converts this Rotation into Location. |
Location |
toLocation(Rotation.Order order)
Converts this Rotation into Location. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public double yaw
public double roll
public double pitch
| Constructor Detail |
|---|
public Rotation()
public Rotation(double pitch,
double yaw,
double roll)
yaw - Rotation yaw.roll - Rotation roll.pitch - Rotation pitch.public Rotation(Rotation rotation)
rotation - Rotation.| Method Detail |
|---|
public Rotation clone()
clone in class java.lang.Objectpublic double getYaw()
public double getPitch()
public double getRoll()
public Rotation getRotation()
IRotable.
getRotation in interface IRotablepublic Point3d getPoint3d()
public static final double LinearInterp(double a,
double b,
double alpha)
a - startb - targetalpha - strength
public static final double LogInterp(double a,
double b,
double alpha)
a - startb - targetalpha - strength
public static final double ExpInterp(double a,
double b,
double alpha)
a - startb - targetalpha - strength
public static final Rotation RotationLinearInterp(Rotation a,
Rotation b,
double alpha)
a - startb - targetalpha - strength
public final Rotation RotationLinearInterp(Rotation b,
double alpha)
a - startb - targetalpha - strength
public static final Rotation RotationLogInterp(Rotation a,
Rotation b,
double alpha)
a - startb - targetalpha - strength
public final Rotation RotationLogInterp(Rotation b,
double alpha)
a - startb - targetalpha - strength
public static final Rotation RotationExpInterp(Rotation a,
Rotation b,
double alpha)
a - startb - targetalpha - strength
public final Rotation RotationExpInterp(Rotation b,
double alpha)
a - startb - targetalpha - strength
public java.lang.String toString()
toString in class java.lang.Objectpublic Location toLocation()
public Location toLocation(Rotation.Order order)
order - order of rotations should the method use
public static Matrix3d constructYZRot(double angle)
angle -
public static Matrix3d constructXZRot(double angle)
angle -
public static Matrix3d constructXYRot(double angle)
angle -
public Rotation setTo(Rotation r)
r - rotation from which we copy data
public Rotation setTo(double pitch,
double yaw,
double roll)
pitch - new pitchyaw - new yawroll - new roll
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||