public class LineUtil extends Object
LineUtil is a collection of utilities related to
lines.| Modifier and Type | Method and Description |
|---|---|
static Line2D |
bisector(Line2D segment)
Return the bisector (french: médiatrice) of the provided segment
|
static Point2D.Double |
intersection(Point2D p1,
Point2D p2,
Point2D p3,
Point2D p4)
Return the intersection point between infinite line A defined by
points p1 & p2 and infinite line B defined by points p3 & p4.
|
public static Line2D bisector(Line2D segment)
segment - the provided segmentpublic static Point2D.Double intersection(Point2D p1, Point2D p2, Point2D p3, Point2D p4)
p1 - first point of line Ap2 - second point of line Ap3 - first point of line Bp4 - second point of line BDataMelt-1.1. http://jwork.org/dmelt/ ©