public final class IntersectionTester extends Object
Intersector does implement some of these
tests already, but not all of them. I've just included all of these here for consistency's sake
and to make porting some of my other projects easier.| Constructor and Description |
|---|
IntersectionTester() |
| Modifier and Type | Method and Description |
|---|---|
static float |
getDistanceFromPointToBox(com.badlogic.gdx.math.Vector3 point,
com.badlogic.gdx.math.collision.BoundingBox box) |
static float |
getSquaredDistanceFromPointToBox(com.badlogic.gdx.math.Vector3 point,
com.badlogic.gdx.math.collision.BoundingBox box) |
static boolean |
test(com.badlogic.gdx.math.collision.BoundingBox a,
com.badlogic.gdx.math.collision.BoundingBox b) |
static boolean |
test(com.badlogic.gdx.math.collision.BoundingBox box,
com.badlogic.gdx.math.Plane plane) |
static boolean |
test(com.badlogic.gdx.math.collision.BoundingBox box,
com.badlogic.gdx.math.collision.Sphere sphere) |
static boolean |
test(com.badlogic.gdx.math.collision.BoundingBox box,
com.badlogic.gdx.math.Vector3 point) |
static boolean |
test(com.badlogic.gdx.math.collision.BoundingBox box,
com.badlogic.gdx.math.Vector3[] vertices,
com.badlogic.gdx.math.Vector3 outFirstIntersection) |
static boolean |
test(com.badlogic.gdx.math.collision.Ray ray,
com.badlogic.gdx.math.collision.BoundingBox box,
com.badlogic.gdx.math.Vector3 outFirstIntersection) |
static boolean |
test(com.badlogic.gdx.math.collision.Ray ray,
com.badlogic.gdx.math.Plane plane,
com.badlogic.gdx.math.Vector3 outIntersection) |
static boolean |
test(com.badlogic.gdx.math.collision.Ray ray,
com.badlogic.gdx.math.collision.Sphere sphere,
com.badlogic.gdx.math.Vector3 outFirstIntersection) |
static boolean |
test(com.badlogic.gdx.math.collision.Ray ray,
com.badlogic.gdx.math.Vector3 a,
com.badlogic.gdx.math.Vector3 b,
com.badlogic.gdx.math.Vector3 c,
com.badlogic.gdx.math.Vector3 outIntersection) |
static boolean |
test(com.badlogic.gdx.math.collision.Sphere sphere,
com.badlogic.gdx.math.Plane plane) |
static boolean |
test(com.badlogic.gdx.math.collision.Sphere a,
com.badlogic.gdx.math.collision.Sphere b) |
static boolean |
test(com.badlogic.gdx.math.collision.Sphere sphere,
com.badlogic.gdx.math.Vector3 point) |
static boolean |
test(com.badlogic.gdx.math.collision.Sphere sphere,
com.badlogic.gdx.math.Vector3[] vertices,
com.badlogic.gdx.math.Vector3 outFirstIntersection) |
static boolean |
test(com.badlogic.gdx.math.Vector3 point,
com.badlogic.gdx.math.Vector3 a,
com.badlogic.gdx.math.Vector3 b,
com.badlogic.gdx.math.Vector3 c) |
public static float getSquaredDistanceFromPointToBox(com.badlogic.gdx.math.Vector3 point,
com.badlogic.gdx.math.collision.BoundingBox box)
public static float getDistanceFromPointToBox(com.badlogic.gdx.math.Vector3 point,
com.badlogic.gdx.math.collision.BoundingBox box)
public static boolean test(com.badlogic.gdx.math.collision.BoundingBox box,
com.badlogic.gdx.math.Vector3 point)
public static boolean test(com.badlogic.gdx.math.collision.Sphere sphere,
com.badlogic.gdx.math.Vector3 point)
public static boolean test(com.badlogic.gdx.math.collision.BoundingBox box,
com.badlogic.gdx.math.Vector3[] vertices,
com.badlogic.gdx.math.Vector3 outFirstIntersection)
public static boolean test(com.badlogic.gdx.math.collision.Sphere sphere,
com.badlogic.gdx.math.Vector3[] vertices,
com.badlogic.gdx.math.Vector3 outFirstIntersection)
public static boolean test(com.badlogic.gdx.math.collision.BoundingBox a,
com.badlogic.gdx.math.collision.BoundingBox b)
public static boolean test(com.badlogic.gdx.math.collision.Sphere a,
com.badlogic.gdx.math.collision.Sphere b)
public static boolean test(com.badlogic.gdx.math.collision.Sphere sphere,
com.badlogic.gdx.math.Plane plane)
public static boolean test(com.badlogic.gdx.math.collision.BoundingBox box,
com.badlogic.gdx.math.Plane plane)
public static boolean test(com.badlogic.gdx.math.collision.Ray ray,
com.badlogic.gdx.math.Plane plane,
com.badlogic.gdx.math.Vector3 outIntersection)
public static boolean test(com.badlogic.gdx.math.collision.Ray ray,
com.badlogic.gdx.math.collision.Sphere sphere,
com.badlogic.gdx.math.Vector3 outFirstIntersection)
public static boolean test(com.badlogic.gdx.math.collision.Ray ray,
com.badlogic.gdx.math.collision.BoundingBox box,
com.badlogic.gdx.math.Vector3 outFirstIntersection)
public static boolean test(com.badlogic.gdx.math.collision.BoundingBox box,
com.badlogic.gdx.math.collision.Sphere sphere)
public static boolean test(com.badlogic.gdx.math.collision.Ray ray,
com.badlogic.gdx.math.Vector3 a,
com.badlogic.gdx.math.Vector3 b,
com.badlogic.gdx.math.Vector3 c,
com.badlogic.gdx.math.Vector3 outIntersection)
public static boolean test(com.badlogic.gdx.math.Vector3 point,
com.badlogic.gdx.math.Vector3 a,
com.badlogic.gdx.math.Vector3 b,
com.badlogic.gdx.math.Vector3 c)
Copyright © 2022. All rights reserved.