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 angular unit for which to return the joint position.long getRevolutions()
double getAngle(Angle.Unit unit)
unit
- The angular unit for which to return the angle offset value.boolean epsilonEquals(JointPosition other, double epsilon, Angle.Unit unit)
Indicates whether some other JointPosition
object is "approximately equal" to this one.
other
- Another JointPosition
object.epsilon
- The tolerance value to be used for the comparison of joint position values in specified units.unit
- The angular unit for the specified epsilon
tolerance.true
if the joint position value of this object is "approximately equal" to the joint position
value of the other
argument; false
otherwise.boolean equals(Object obj)
JointPosition
object is "equal to" this one.int hashCode()
Copyright © 2023. All rights reserved.