ProGAL.geom2d
Class LSC

java.lang.Object
  extended by ProGAL.geom2d.LSC
All Implemented Interfaces:
Shape

public class LSC
extends java.lang.Object
implements Shape

A line-swept circle.


Constructor Summary
LSC(LineSegment segment, double radius)
           
LSC(Point p1, Point p2, double radius)
           
 
Method Summary
 LSC clone()
           
 double getArea()
           
 Point getCenter()
          Get the geometric center of the shape.
 double getRadius()
           
 LineSegment getSegment()
           
 void setRadius(double rad)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LSC

public LSC(LineSegment segment,
           double radius)

LSC

public LSC(Point p1,
           Point p2,
           double radius)
Method Detail

setRadius

public void setRadius(double rad)

getSegment

public LineSegment getSegment()

getRadius

public double getRadius()

getArea

public double getArea()

getCenter

public Point getCenter()
Description copied from interface: Shape
Get the geometric center of the shape. The center of a shape can be interpreted in many ways (center of mass, circumcenter, inscribed center etc.). No strict requirement is given here, but typically the circumcenter should be supplied. This method is most prominently used to find the average center-position of a collection of shapes such that scene-viewers can be centered on the scene.

Specified by:
getCenter in interface Shape

clone

public LSC clone()
Overrides:
clone in class java.lang.Object