cz.cuni.utils.math.vertexSpace.vertex2Dspace
Interface Vertex2DSpaceInterface

All Known Implementing Classes:
Vertex2DSpace, Vertex2DSpaceSimple

public interface Vertex2DSpaceInterface


Method Summary
 void clear()
          Clears information about vertices, which have been created.
 Vertex2D get(double x, double y)
          Should return existing or new vertex which has "equal" coordinates.
 Vertex2D get(Tuple2D t)
          Should return existing or new vertex which has "equal" coordinates.
 void remove(Vertex2D v)
          Vertex must be removed from the space
 void set(Vertex2D v)
          You have to insert this vertex into space, possibly overwriting the existing one.
 

Method Detail

get

Vertex2D get(Tuple2D t)
Should return existing or new vertex which has "equal" coordinates.

Parameters:
t -
Returns:
Vertex2D

get

Vertex2D get(double x,
             double y)
Should return existing or new vertex which has "equal" coordinates.

Parameters:
x - coordinate
y - coordinate
Returns:
Vertex2D

set

void set(Vertex2D v)
You have to insert this vertex into space, possibly overwriting the existing one.

Parameters:
v -

remove

void remove(Vertex2D v)
Vertex must be removed from the space

Parameters:
v -

clear

void clear()
Clears information about vertices, which have been created.