public static class Intersections.LineLine extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
intersect(double s0x0,
double s0y0,
double s0x1,
double s0y1,
double s1x0,
double s1y0,
double s1x1,
double s1y1,
Point2D relativeLocation,
Point2D absoluteLocation)
Computes the intersection of the specified lines.
|
static boolean |
intersect(Line2D line0,
Line2D line1,
Point2D relativeLocation,
Point2D absoluteLocation)
Computes the intersection of the given lines.
|
public static boolean intersect(Line2D line0, Line2D line1, Point2D relativeLocation, Point2D absoluteLocation)
line0 - The first lineline1 - The second linerelativeLocation - Optional location that stores the
relative location of the intersection point on
the given line segmentsabsoluteLocation - Optional location that stores the
absolute location of the intersection pointpublic static boolean intersect(double s0x0,
double s0y0,
double s0x1,
double s0y1,
double s1x0,
double s1y0,
double s1x1,
double s1y1,
Point2D relativeLocation,
Point2D absoluteLocation)
s0x0 - x-coordinate of point 0 of line segment 0s0y0 - y-coordinate of point 0 of line segment 0s0x1 - x-coordinate of point 1 of line segment 0s0y1 - y-coordinate of point 1 of line segment 0s1x0 - x-coordinate of point 0 of line segment 1s1y0 - y-coordinate of point 0 of line segment 1s1x1 - x-coordinate of point 1 of line segment 1s1y1 - y-coordinate of point 1 of line segment 1relativeLocation - Optional location that stores the
relative location of the intersection point on
the given line segmentsabsoluteLocation - Optional location that stores the
absolute location of the intersection pointCopyright © 2017. All rights reserved.