public class Collision
extends java.lang.Object
Constructor and Description |
---|
Collision() |
Modifier and Type | Method and Description |
---|---|
static boolean |
CheckCollisionWithBox(org.apache.commons.math3.geometry.euclidean.threed.Vector3D B1,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D B2,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D L1,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D L2,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D Hitpoint) |
static boolean |
GetIntersection(float fDst1,
float fDst2,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D P1,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D P2,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D Hitpoint) |
static boolean |
InBox(org.apache.commons.math3.geometry.euclidean.threed.Vector3D Hit,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D B1,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D B2,
int Axis) |
public static boolean GetIntersection(float fDst1, float fDst2, org.apache.commons.math3.geometry.euclidean.threed.Vector3D P1, org.apache.commons.math3.geometry.euclidean.threed.Vector3D P2, org.apache.commons.math3.geometry.euclidean.threed.Vector3D Hitpoint)
public static boolean InBox(org.apache.commons.math3.geometry.euclidean.threed.Vector3D Hit, org.apache.commons.math3.geometry.euclidean.threed.Vector3D B1, org.apache.commons.math3.geometry.euclidean.threed.Vector3D B2, int Axis)
public static boolean CheckCollisionWithBox(org.apache.commons.math3.geometry.euclidean.threed.Vector3D B1, org.apache.commons.math3.geometry.euclidean.threed.Vector3D B2, org.apache.commons.math3.geometry.euclidean.threed.Vector3D L1, org.apache.commons.math3.geometry.euclidean.threed.Vector3D L2, org.apache.commons.math3.geometry.euclidean.threed.Vector3D Hitpoint)
B1
- Point 1 (smallest) of bounding box.B2
- Point 2 (largest) of bounding box.L1
- Point 1 of Line.L2
- Point 2 of Line.Hit
- The Point at which the line intersects with the box.