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 boolean
intersectSegmentCircle
(float sX, float sY, float eX, float eY, float cX, float cY, float squareRadius) static boolean
intersectSegmentCircle
(com.badlogic.gdx.math.Vector2 start, com.badlogic.gdx.math.Vector2 end, com.badlogic.gdx.math.Vector2 center, float squareRadius) static boolean
intersectSegmentRect
(float sX, float sY, float eX, float eY, float rMinX, float rMinY, float rMaxX, float rMaxY) static boolean
intersectSegmentSegment
(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4) static boolean
isPointInRect
(float x, float y, float rMinX, float rMinY, float rMaxX, float rMaxY)
-
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) -
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) -
intersectSegmentCircle
public static boolean intersectSegmentCircle(com.badlogic.gdx.math.Vector2 start, com.badlogic.gdx.math.Vector2 end, com.badlogic.gdx.math.Vector2 center, float squareRadius)
-