com.aelitis.azureus.core.dht.netcoords.vivaldi.ver1.impl
Class HeightCoordinatesImpl
java.lang.Object
com.aelitis.azureus.core.dht.netcoords.vivaldi.ver1.impl.HeightCoordinatesImpl
- All Implemented Interfaces:
- Coordinates
public class HeightCoordinatesImpl
- extends java.lang.Object
- implements Coordinates
Field Summary |
protected float |
h
|
protected float |
x
|
protected float |
y
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
x
protected final float x
y
protected final float y
h
protected final float h
HeightCoordinatesImpl
public HeightCoordinatesImpl(float x,
float y,
float h)
HeightCoordinatesImpl
public HeightCoordinatesImpl(HeightCoordinatesImpl copy)
add
public Coordinates add(Coordinates other)
- Specified by:
add
in interface Coordinates
sub
public Coordinates sub(Coordinates other)
- Specified by:
sub
in interface Coordinates
scale
public Coordinates scale(float scale)
- Specified by:
scale
in interface Coordinates
measure
public float measure()
- Specified by:
measure
in interface Coordinates
atOrigin
public boolean atOrigin()
- Specified by:
atOrigin
in interface Coordinates
isValid
public boolean isValid()
- Specified by:
isValid
in interface Coordinates
distance
public float distance(Coordinates other)
- Specified by:
distance
in interface Coordinates
unity
public Coordinates unity()
- Specified by:
unity
in interface Coordinates
getCoordinates
public double[] getCoordinates()
- Specified by:
getCoordinates
in interface Coordinates
toString
public java.lang.String toString()
- Overrides:
toString
in class java.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 class java.lang.Object