public class GeomUtils extends Object
Constructor and Description |
---|
GeomUtils() |
Modifier and Type | Method and Description |
---|---|
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) |
public static boolean isHorizontal(Line2D.Double seg)
public static boolean isVertical(Line2D.Double seg)
public static double getMinX(Line2D.Double seg)
public static double getMaxX(Line2D.Double seg)
public static double getMinY(Line2D.Double seg)
public static double getMaxY(Line2D.Double seg)
public static Point2D.Double getPoint2D(Line2D.Double line, double u)
public static Point2D.Double getSegIntersection(Line2D.Double line1, Line2D.Double line2)
public static Point2D.Double getCenter(Line2D.Double l)
public static void fillPoint2D(Graphics2D g2d, Point2D pt)
public static double getOrthoDistance(Line2D.Double seg, Point2D pt)
Copyright © 2015. All Rights Reserved.