com.aelitis.azureus.core.dht.netcoords.vivaldi.ver1.impl
Class HeightCoordinatesImpl

java.lang.Object
  extended by com.aelitis.azureus.core.dht.netcoords.vivaldi.ver1.impl.HeightCoordinatesImpl
All Implemented Interfaces:
Coordinates

public class HeightCoordinatesImpl
extends Object
implements Coordinates


Field Summary
protected  float h
           
protected  float x
           
protected  float y
           
 
Fields inherited from interface com.aelitis.azureus.core.dht.netcoords.vivaldi.ver1.Coordinates
MAX_H, MAX_X, MAX_Y
 
Constructor Summary
HeightCoordinatesImpl(float x, float y, float h)
           
HeightCoordinatesImpl(HeightCoordinatesImpl copy)
           
 
Method Summary
 Coordinates add(Coordinates other)
           
 boolean atOrigin()
           
 float distance(Coordinates other)
           
 boolean equals(Object arg0)
           
 double[] getCoordinates()
           
 float getH()
           
 float getX()
           
 float getY()
           
 boolean isValid()
           
 float measure()
           
 Coordinates scale(float scale)
           
 Coordinates sub(Coordinates other)
           
 String toString()
           
 Coordinates unity()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

protected final float x

y

protected final float y

h

protected final float h
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 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 String toString()
Overrides:
toString in class 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(Object arg0)
Overrides:
equals in class Object