net.sourceforge.plantuml.graph2
Class GeomUtils
java.lang.Object
net.sourceforge.plantuml.graph2.GeomUtils
public class GeomUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GeomUtils
public GeomUtils()
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 © 2014. All Rights Reserved.