public interface Position
Modifier and Type | Method and Description |
---|---|
boolean |
epsilonEquals(Position other,
double epsilon,
Length.Unit unit)
Indicates whether some other
Position object is "approximately equal" to this one. |
boolean |
equals(Object obj)
Indicates whether some other
Position object is "equal to" this one. |
double |
getX()
Deprecated.
|
double |
getX(Length.Unit unit)
Provides the X coordinate value in specified units
|
double |
getY()
Deprecated.
|
double |
getY(Length.Unit unit)
Provides the Y coordinate value in specified units
|
double |
getZ()
Deprecated.
|
double |
getZ(Length.Unit unit)
Provides the Z coordinate value in specified units
|
int |
hashCode() |
String |
toString() |
double getX()
getX(Length.Unit)
double getY()
getY(Length.Unit)
double getZ()
getZ(Length.Unit)
double getX(Length.Unit unit)
unit
- the unit typedouble
value in specified unitsdouble getY(Length.Unit unit)
unit
- the unit typedouble
value in specified unitsdouble getZ(Length.Unit unit)
unit
- the unit typedouble
value in specified unitsint hashCode()
boolean equals(Object obj)
Position
object is "equal to" this one.boolean epsilonEquals(Position other, double epsilon, Length.Unit unit)
Position
object is "approximately equal" to this one.other
- another Position
objectepsilon
- a toleranceunit
- the unit type of the epsilon
tolerancetrue
if the value of this object is "approximately equal" to the value of the other
argument; false
otherwise.Copyright © 2019. All rights reserved.