net.sourceforge.plantuml.graph2
Class GeomUtils

java.lang.Object
  extended by net.sourceforge.plantuml.graph2.GeomUtils

public class GeomUtils
extends Object


Constructor Summary
GeomUtils()
           
 
Method Summary
static void fillPoint2D(Graphics2D g2d, Point2D pt)
           
static Point2D.Double getCenter(Line2D.Double l)
           
static double getMaxX(Line2D.Double seg)
           
static double getMaxY(Line2D.Double seg)
           
static double getMinX(Line2D.Double seg)
           
static double getMinY(Line2D.Double seg)
           
static double getOrthoDistance(Line2D.Double seg, Point2D pt)
           
static Point2D.Double getPoint2D(Line2D.Double line, double u)
           
static Point2D.Double getSegIntersection(Line2D.Double line1, Line2D.Double line2)
           
static boolean isHorizontal(Line2D.Double seg)
           
static boolean isVertical(Line2D.Double seg)
           
static String toString(Line2D line)
           
static String toString(Point2D pt)
           
static Point2D translate(Point2D pt, double deltaX, double deltaY)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeomUtils

public GeomUtils()
Method Detail

translate

public static Point2D translate(Point2D pt,
                                double deltaX,
                                double deltaY)

isHorizontal

public static boolean isHorizontal(Line2D.Double seg)

isVertical

public static boolean isVertical(Line2D.Double seg)

getMinX

public static double getMinX(Line2D.Double seg)

getMaxX

public static double getMaxX(Line2D.Double seg)

getMinY

public static double getMinY(Line2D.Double seg)

getMaxY

public static double getMaxY(Line2D.Double seg)

getPoint2D

public static Point2D.Double getPoint2D(Line2D.Double line,
                                        double u)

getSegIntersection

public static Point2D.Double getSegIntersection(Line2D.Double line1,
                                                Line2D.Double line2)

toString

public static String toString(Line2D line)

toString

public static String toString(Point2D pt)

getCenter

public static Point2D.Double getCenter(Line2D.Double l)

fillPoint2D

public static void fillPoint2D(Graphics2D g2d,
                               Point2D pt)

getOrthoDistance

public static double getOrthoDistance(Line2D.Double seg,
                                      Point2D pt)


Copyright © 2012. All Rights Reserved.