Class HeightCoordinatesImpl
- java.lang.Object
-
- com.biglybt.core.dht.netcoords.vivaldi.ver1.impl.HeightCoordinatesImpl
-
- All Implemented Interfaces:
Coordinates
public class HeightCoordinatesImpl extends java.lang.Object implements Coordinates
-
-
Constructor Summary
Constructors Constructor Description HeightCoordinatesImpl(float x, float y, float h)
HeightCoordinatesImpl(HeightCoordinatesImpl copy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Coordinates
add(Coordinates other)
boolean
atOrigin()
float
distance(Coordinates other)
boolean
equals(java.lang.Object arg0)
double[]
getCoordinates()
float
getH()
float
getX()
float
getY()
boolean
isValid()
float
measure()
Coordinates
scale(float scale)
Coordinates
sub(Coordinates other)
java.lang.String
toString()
Coordinates
unity()
private boolean
valid(float f)
-
-
-
Constructor Detail
-
HeightCoordinatesImpl
public HeightCoordinatesImpl(float x, float y, float h)
-
HeightCoordinatesImpl
public HeightCoordinatesImpl(HeightCoordinatesImpl copy)
-
-
Method Detail
-
add
public Coordinates add(Coordinates other)
- Specified by:
add
in interfaceCoordinates
-
sub
public Coordinates sub(Coordinates other)
- Specified by:
sub
in interfaceCoordinates
-
scale
public Coordinates scale(float 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
public float distance(Coordinates other)
- Specified by:
distance
in interfaceCoordinates
-
unity
public Coordinates unity()
- Specified by:
unity
in interfaceCoordinates
-
getCoordinates
public double[] getCoordinates()
- Specified by:
getCoordinates
in interfaceCoordinates
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
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
public boolean equals(java.lang.Object arg0)
- Overrides:
equals
in classjava.lang.Object
-
-