public interface JointPosition
Modifier and Type | Method and Description |
---|---|
boolean |
epsilonEquals(JointPosition other,
double epsilon,
Angle.Unit unit)
Indicates whether some other
JointPosition object is "approximately equal" to this one. |
boolean |
equals(Object obj)
Indicates whether some other
JointPosition object is "equal to" this one. |
double |
getAngle(Angle.Unit unit)
Provides the angle offset in the range [0:2pi[ (RAD) or [0:360[ (DEG).
|
double |
getPosition(Angle.Unit unit)
Provides the value of the joint position including all revolutions in the specified unit.
|
long |
getRevolutions()
Provides the number of whole revolutions.
|
int |
hashCode() |
String |
toString() |
double getPosition(Angle.Unit unit)
Provides the value of the joint position including all revolutions in the specified unit.
Alternatively, the number of revolutions and the corresponding angle offset can be retrieved withgetAngle(Angle.Unit)
and getRevolutions()
, respectively.unit
- the unit type.long getRevolutions()
double getAngle(Angle.Unit unit)
unit
- the unit type.boolean epsilonEquals(JointPosition other, double epsilon, Angle.Unit unit)
JointPosition
object is "approximately equal" to this one.other
- another JointPosition
object.epsilon
- a tolerance.unit
- unit type of the epsilon
tolerance.true
if the value of this object is "approximately equal" to the value of the other
argument; false
otherwise.int hashCode()
boolean equals(Object obj)
JointPosition
object is "equal to" this one.Copyright © 2020. All rights reserved.