org.kabeja.dxf.helpers
Class DXFUtils

java.lang.Object
  extended by org.kabeja.dxf.helpers.DXFUtils

public class DXFUtils
extends java.lang.Object

Author:
Constructor Summary
DXFUtils()
           
 
Method Summary
static double distance(Point start, Point end)
           
static boolean equals(Point p1, Point p2, double radius)
          Tests if the two points are the same for a given radius.
static double getArcRadius(DXFVertex start, DXFVertex end)
           
static Point getPointFromParameterizedLine(Point basePoint, Vector direction, double parameter)
           
static void reverseDXFLine(DXFLine line)
           
static void reverseDXFPolyline(DXFPolyline pline)
           
static double rotateAngleX(Point start, Point end)
           
static Point scalePoint(Point p, double scale)
           
static double vectorValue(double[] x)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DXFUtils

public DXFUtils()
Method Detail

distance

public static double distance(Point start,
                              Point end)

rotateAngleX

public static double rotateAngleX(Point start,
                                  Point end)

vectorValue

public static double vectorValue(double[] x)

scalePoint

public static Point scalePoint(Point p,
                               double scale)

getPointFromParameterizedLine

public static Point getPointFromParameterizedLine(Point basePoint,
                                                  Vector direction,
                                                  double parameter)

reverseDXFLine

public static void reverseDXFLine(DXFLine line)

reverseDXFPolyline

public static void reverseDXFPolyline(DXFPolyline pline)

getArcRadius

public static double getArcRadius(DXFVertex start,
                                  DXFVertex end)

equals

public static boolean equals(Point p1,
                             Point p2,
                             double radius)
Tests if the two points are the same for a given radius. In other words the distance between the two points is lower then the radius.

Parameters:
p1 -
p2 -
radius -
Returns: