com.iver.cit.javacad.util
Class ArcFromBulgeCalculator

java.lang.Object
  extended bycom.iver.cit.javacad.util.ArcFromBulgeCalculator

public class ArcFromBulgeCalculator
extends java.lang.Object

This class calculates an arc given by a start and end points and a bulge

Author:
jmorell

Constructor Summary
ArcFromBulgeCalculator(java.awt.geom.Point2D p1, java.awt.geom.Point2D p2, double bulge)
          This method calculates an arc given by a start and end points and a bulge
 
Method Summary
 java.util.Vector getCentralPoint()
          Method that allows to obtain a set of points located in the central zone of this arc object
 java.util.Vector getPoints(double inc)
          This method calculates an arc in a Gis geometry model.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArcFromBulgeCalculator

public ArcFromBulgeCalculator(java.awt.geom.Point2D p1,
                              java.awt.geom.Point2D p2,
                              double bulge)
This method calculates an arc given by a start and end points and a bulge

Parameters:
p1 - Start point of the arc given by a Point2D
p2 - End point of the arc given by a Point2D
bulge - Bulge of the arc given by a double value
Method Detail

getPoints

public java.util.Vector getPoints(double inc)
This method calculates an arc in a Gis geometry model. This arc is represented in this model by a Vector of Point2D. The distance between points in the arc is given as an argument

Parameters:
inc - Distance between points in the arc
Returns:
Vector Vector with the set of Point2D that represents the arc

getCentralPoint

public java.util.Vector getCentralPoint()
Method that allows to obtain a set of points located in the central zone of this arc object