Class HeightCoordinatesImpl
java.lang.Object
com.biglybt.core.dht.netcoords.vivaldi.ver1.impl.HeightCoordinatesImpl
- All Implemented Interfaces:
Coordinates
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final float
protected final float
protected final float
Fields inherited from interface com.biglybt.core.dht.netcoords.vivaldi.ver1.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:
add
in interfaceCoordinates
-
sub
- Specified by:
sub
in interfaceCoordinates
-
scale
- Specified by:
scale
in interfaceCoordinates
-
measure
public float measure()- Specified by:
measure
in interfaceCoordinates
-
atOrigin
public boolean atOrigin()- Specified by:
atOrigin
in interfaceCoordinates
-
isValid
public boolean isValid()- Specified by:
isValid
in interfaceCoordinates
-
valid
private boolean valid(float f) -
distance
- Specified by:
distance
in interfaceCoordinates
-
unity
- Specified by:
unity
in interfaceCoordinates
-
getCoordinates
public double[] getCoordinates()- Specified by:
getCoordinates
in 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
-