Class Intersector

java.lang.Object
com.prineside.tdi2.utils.Intersector

public final class Intersector extends Object
Thread safe variant of GDX Intersector
  • 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(Vector2 start, Vector2 end, Vector2 center, float squareRadius)