IOrientation2D
, IOrientation3D
, IOrientationFull3D
Orientation1D
, Orientation2D
, Orientation3D
, OrientationFull3D
public interface IOrientation
Modifier and Type | Method | Description |
---|---|---|
void |
E(IOrientation o) |
Copies the given orientation to this one.
|
Vector |
getDirection() |
|
void |
randomRotation(IRandom random,
double theta) |
Perform a rotation by a random amount in the solid angle theta on the
present orientation.
|
void |
setDirection(Vector newDirection) |
Sets this orientation to point in the given direction.
|
void E(IOrientation o)
o
- the new orientationVector getDirection()
void setDirection(Vector newDirection)
newDirection
- the new direction for this orientationjava.lang.Exception
- if vector has 0 lengthvoid randomRotation(IRandom random, double theta)
random
- random number generator used to select the angletheta
- the maximum angle (in radians) for random rotation