Package com.prineside.tdi2.utils
Class Intersector
java.lang.Object
com.prineside.tdi2.utils.Intersector
Thread safe variant of GDX Intersector
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanintersectSegmentCircle(float sX, float sY, float eX, float eY, float cX, float cY, float squareRadius) static booleanintersectSegmentCircleV(Vector2 start, Vector2 end, Vector2 center, float squareRadius) static booleanintersectSegmentRect(float sX, float sY, float eX, float eY, float rMinX, float rMinY, float rMaxX, float rMaxY) static booleanintersectSegmentSegment(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4) static booleanisPointInRect(float x, float y, float rMinX, float rMinY, float rMaxX, float rMaxY) static booleanrectanglesOverlap(float r1minX, float r1minY, float r1maxX, float r1maxY, float r2minX, float r2minY, float r2maxX, float r2maxY)
-
Method Details
-
intersectSegmentRect
public static boolean intersectSegmentRect(float sX, float sY, float eX, float eY, float rMinX, float rMinY, float rMaxX, float rMaxY) -
isPointInRect
public static boolean isPointInRect(float x, float y, float rMinX, float rMinY, float rMaxX, float rMaxY) -
rectanglesOverlap
public static boolean rectanglesOverlap(float r1minX, float r1minY, float r1maxX, float r1maxY, float r2minX, float r2minY, float r2maxX, float r2maxY) -
intersectSegmentSegment
public static boolean intersectSegmentSegment(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4) -
intersectSegmentCircle
public static boolean intersectSegmentCircle(float sX, float sY, float eX, float eY, float cX, float cY, float squareRadius) -
intersectSegmentCircleV
-