public class OrientationRotationMatrix extends Orientation
RotationMatrix
.
Before rotation, the entity is presumed to be aligned with the x-axis.
Constructor and Description |
---|
OrientationRotationMatrix() |
OrientationRotationMatrix(RotationMatrix rotationMatrix) |
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) |
RotationMatrix |
getRotationMatrix()
The rotation-matrix.
|
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.
|
public OrientationRotationMatrix()
public OrientationRotationMatrix(RotationMatrix rotationMatrix)
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 boolean equals(Object o)
equals
in class Orientation
protected boolean canEqual(Object other)
public int hashCode()
hashCode
in class Orientation
public RotationMatrix getRotationMatrix()
getRotationMatrix
in class Orientation
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.