public interface Position
Representation of positions.
Modifier and Type | Method and Description |
---|---|
boolean |
epsilonEquals(Position other,
double epsilon,
Length.Unit unit)
Indicates whether of some other Position is "approximately equal" to this one.
|
boolean |
equals(Object obj) |
double |
getX()
Deprecated.
|
double |
getX(Length.Unit unit)
Provides the x value in specified units
|
double |
getY()
Deprecated.
|
double |
getY(Length.Unit unit)
Provides the y value in specified units
|
double |
getZ()
Deprecated.
|
double |
getZ(Length.Unit unit)
Provides the z value in specified units
|
int |
hashCode()
Returns a hash code value for the Position.
|
String |
toString()
Returns a string representation of the Position.
|
double getX()
getX(Length.Unit)
double getY()
getY(Length.Unit)
double getZ()
getZ(Length.Unit)
double getX(Length.Unit unit)
unit
- enum to specify unit typedouble getY(Length.Unit unit)
unit
- enum to specify unit typedouble getZ(Length.Unit unit)
unit
- enum to specify unit typeint hashCode()
boolean equals(Object obj)
boolean epsilonEquals(Position other, double epsilon, Length.Unit unit)
other
- another Positionepsilon
- a toleranceunit
- enum to specify unit type of epsilontrue
if this object contains the "approximately equal in tolerance" in value as the obj
argument; false
otherwise.Copyright © 2018. All rights reserved.