math.geom2d.circulinear.buffer
Class RoundCapFactory

java.lang.Object
  extended by math.geom2d.circulinear.buffer.RoundCapFactory
All Implemented Interfaces:
CapFactory

public class RoundCapFactory
extends java.lang.Object
implements CapFactory

Generate a circular cap at the end of a curve.

Author:
dlegland

Constructor Summary
RoundCapFactory()
           
 
Method Summary
 CirculinearContinuousCurve2D createCap(Point2D p1, Point2D p2)
           
 CirculinearContinuousCurve2D createCap(Point2D center, Vector2D direction, double dist)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoundCapFactory

public RoundCapFactory()
Method Detail

createCap

public CirculinearContinuousCurve2D createCap(Point2D center,
                                              Vector2D direction,
                                              double dist)
Specified by:
createCap in interface CapFactory

createCap

public CirculinearContinuousCurve2D createCap(Point2D p1,
                                              Point2D p2)
Specified by:
createCap in interface CapFactory