public final class OrientationAxisAngle extends Orientation
Constructor and Description |
---|
OrientationAxisAngle(Vector3d axis,
double angle) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
protected RotationMatrix |
deriveRotationMatrix()
Derives a
RotationMatrix that can be applied to rotate an entity
anti-clockwise to the current orientation. |
boolean |
equals(Object o) |
double |
getAngle()
Angle part of axis-angle orientation (anti-clock in radians).
|
Vector3d |
getAxis()
Axis part of axis-angle orientation (should be normalized).
|
int |
hashCode() |
Orientation |
negative()
Derives a new
Orientation in the opposite (negative) direction to the current
instance. |
int |
numberDimensions()
The dimensionality of space the orientation is valid for.
|
String |
toString() |
getRotationMatrix
public OrientationAxisAngle(Vector3d axis, double angle)
protected RotationMatrix deriveRotationMatrix()
Orientation
RotationMatrix
that can be applied to rotate an entity
anti-clockwise to the current orientation.
It presumes the existing entity has a neutral orientation along the x-axis.
deriveRotationMatrix
in class Orientation
public Orientation negative()
Orientation
Orientation
in the opposite (negative) direction to the current
instance.
A unit step from the origin in the current orientation direction, summed with a unit step in the negative direction, should end in the origin.
negative
in class Orientation
Orientation
in the negative direction.public int numberDimensions()
Orientation
numberDimensions
in class Orientation
public Vector3d getAxis()
public double getAngle()
public boolean equals(Object o)
equals
in class Orientation
protected boolean canEqual(Object other)
public int hashCode()
hashCode
in class Orientation
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.