net.nexttext.renderer.util
Class PlanarEdge

java.lang.Object
  extended by net.nexttext.renderer.util.PlanarEdge
Direct Known Subclasses:
TriangulationEdge

public class PlanarEdge
extends java.lang.Object

PlanarEdge.


Method Summary
 double angleCounterClockWise(PlanarEdge edge)
          Calculated the angle from this edge to the given edge (counter clockwise), the result is in the interval [0;2*PI).
 PlanarVertex getDestination()
          Get the destination vertex.
 PlanarVertex getOrigin()
          Get the origin.
 boolean isRealEdge()
          Check if the edge is real.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isRealEdge

public boolean isRealEdge()
Check if the edge is real.

Returns:
true if real, false if not.

getOrigin

public PlanarVertex getOrigin()
Get the origin.

Returns:
the origin.

angleCounterClockWise

public double angleCounterClockWise(PlanarEdge edge)
Calculated the angle from this edge to the given edge (counter clockwise), the result is in the interval [0;2*PI).

Parameters:
edge -
Returns:
the angle

getDestination

public PlanarVertex getDestination()
Get the destination vertex.

Returns:
the destination vertex.