Class ArcFromBulgeCalculator

java.lang.Object
org.gvsig.dwg.lib.util.ArcFromBulgeCalculator

public class ArcFromBulgeCalculator extends Object
This class calculates an arc given by a start and end points and a bulge
Author:
jmorell
  • Constructor Details

    • ArcFromBulgeCalculator

      public ArcFromBulgeCalculator(double[] p1, double[] 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 Details

    • getPoints

      public 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 Vector getCentralPoint()
      Method that allows to obtain a set of points located in the central zone of this arc object