Class Intersector

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

public final class Intersector extends Object
Thread safe variant of GDX Intersector
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)