Class HeightCoordinatesImpl
java.lang.Object
com.biglybt.core.dht.netcoords.vivaldi.ver1.impl.HeightCoordinatesImpl
- All Implemented Interfaces:
Coordinates
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final floatprotected final floatprotected final floatFields inherited from interface Coordinates
MAX_H, MAX_X, MAX_Y -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
x
protected final float x -
y
protected final float y -
h
protected final float h
-
-
Constructor Details
-
HeightCoordinatesImpl
public HeightCoordinatesImpl(float x, float y, float h) -
HeightCoordinatesImpl
-
-
Method Details
-
add
- Specified by:
addin interfaceCoordinates
-
sub
- Specified by:
subin interfaceCoordinates
-
scale
- Specified by:
scalein interfaceCoordinates
-
measure
public float measure()- Specified by:
measurein interfaceCoordinates
-
atOrigin
public boolean atOrigin()- Specified by:
atOriginin interfaceCoordinates
-
isValid
public boolean isValid()- Specified by:
isValidin interfaceCoordinates
-
valid
private boolean valid(float f) -
distance
- Specified by:
distancein interfaceCoordinates
-
unity
- Specified by:
unityin interfaceCoordinates
-
getCoordinates
public double[] getCoordinates()- Specified by:
getCoordinatesin interfaceCoordinates
-
toString
-
getH
public float getH()- Returns:
- Returns the h.
-
getX
public float getX()- Returns:
- Returns the x.
-
getY
public float getY()- Returns:
- Returns the y.
-
equals
-