public class Geometry
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Geometry.ClippedSegment |
static class |
Geometry.IntersectPoint |
Constructor and Description |
---|
Geometry() |
Modifier and Type | Method and Description |
---|---|
static int |
computeDirection(float xi,
float yi,
float xj,
float yj,
float xk,
float yk) |
static boolean |
doLineSegmentsIntersect(float x1,
float y1,
float x2,
float y2,
float x3,
float y3,
float x4,
float y4) |
static Geometry.IntersectPoint |
intervalIntersection(float a,
float b,
float c,
float d) |
static boolean |
isOnSegment(float xi,
float yi,
float xj,
float yj,
float xk,
float yk) |
static boolean |
isPointInsideConvexPolygon(float... coords) |
static Geometry.ClippedSegment |
lineSegmentClipping(float left,
float right,
float bottom,
float top,
float x0,
float y0,
float x1,
float y1) |
static Geometry.IntersectPoint |
lineSegmentIntersection(float x1,
float y1,
float x2,
float y2,
float x3,
float y3,
float x4,
float y4) |
static Geometry.IntersectPoint[] |
segmentCircleIntersection(float x1,
float y1,
float x2,
float y2,
float x3,
float y3,
float r) |
public static Geometry.IntersectPoint intervalIntersection(float a, float b, float c, float d)
public static boolean doLineSegmentsIntersect(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4)
public static boolean isOnSegment(float xi, float yi, float xj, float yj, float xk, float yk)
public static int computeDirection(float xi, float yi, float xj, float yj, float xk, float yk)
public static boolean isPointInsideConvexPolygon(float... coords)
public static Geometry.IntersectPoint lineSegmentIntersection(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4)
public static Geometry.IntersectPoint[] segmentCircleIntersection(float x1, float y1, float x2, float y2, float x3, float y3, float r)
public static Geometry.ClippedSegment lineSegmentClipping(float left, float right, float bottom, float top, float x0, float y0, float x1, float y1)