public class CircleEdge extends VisEdge
Constructor and Description |
---|
CircleEdge(Edge ve,
VisVertex front,
VisVertex back) |
Modifier and Type | Method and Description |
---|---|
VisEdge |
copy(VisVertex front,
VisVertex back)
Creates a new
VisEdge from the specified
VisVertex instances and this instance's
Edge . |
Coordinates |
getCenter() |
double |
getRadius() |
double |
getSquareDistance(double x,
double y)
If it's in the half-plane that contains the half-circle,
return the distance, else return infinity.
|
double |
getStartAngle() |
public VisEdge copy(VisVertex front, VisVertex back)
VisEdge
VisEdge
from the specified
VisVertex
instances and this instance's
Edge
.public Coordinates getCenter()
public double getRadius()
public double getStartAngle()
public double getSquareDistance(double x, double y)
getSquareDistance
in class VisEdge
VisEdge.getSquareDistance(double,
double)