Package org.joml

Class Intersectionf

java.lang.Object
org.joml.Intersectionf

public class Intersectionf
extends java.lang.Object
  • Field Details

  • Constructor Details

    • Intersectionf

      public Intersectionf()
  • Method Details

    • testPlaneSphere

      public static boolean testPlaneSphere​(float a, float b, float c, float d, float centerX, float centerY, float centerZ, float radius)
    • intersectPlaneSphere

      public static boolean intersectPlaneSphere​(float a, float b, float c, float d, float centerX, float centerY, float centerZ, float radius, Vector4f intersectionCenterAndRadius)
    • testAabPlane

      public static boolean testAabPlane​(float minX, float minY, float minZ, float maxX, float maxY, float maxZ, float a, float b, float c, float d)
    • testAabPlane

      public static boolean testAabPlane​(Vector3fc min, Vector3fc max, float a, float b, float c, float d)
    • testAabAab

      public static boolean testAabAab​(float minXA, float minYA, float minZA, float maxXA, float maxYA, float maxZA, float minXB, float minYB, float minZB, float maxXB, float maxYB, float maxZB)
    • testAabAab

      public static boolean testAabAab​(Vector3fc minA, Vector3fc maxA, Vector3fc minB, Vector3fc maxB)
    • intersectSphereSphere

      public static boolean intersectSphereSphere​(float aX, float aY, float aZ, float radiusSquaredA, float bX, float bY, float bZ, float radiusSquaredB, Vector4f centerAndRadiusOfIntersectionCircle)
    • intersectSphereSphere

      public static boolean intersectSphereSphere​(Vector3fc centerA, float radiusSquaredA, Vector3fc centerB, float radiusSquaredB, Vector4f centerAndRadiusOfIntersectionCircle)
    • testSphereSphere

      public static boolean testSphereSphere​(float aX, float aY, float aZ, float radiusSquaredA, float bX, float bY, float bZ, float radiusSquaredB)
    • testSphereSphere

      public static boolean testSphereSphere​(Vector3fc centerA, float radiusSquaredA, Vector3fc centerB, float radiusSquaredB)
    • distancePointPlane

      public static float distancePointPlane​(float pointX, float pointY, float pointZ, float a, float b, float c, float d)
    • distancePointPlane

      public static float distancePointPlane​(float pointX, float pointY, float pointZ, float v0X, float v0Y, float v0Z, float v1X, float v1Y, float v1Z, float v2X, float v2Y, float v2Z)
    • intersectRayPlane

      public static float intersectRayPlane​(float originX, float originY, float originZ, float dirX, float dirY, float dirZ, float pointX, float pointY, float pointZ, float normalX, float normalY, float normalZ, float epsilon)
    • intersectRayPlane

      public static float intersectRayPlane​(Vector3fc origin, Vector3fc dir, Vector3fc point, Vector3fc normal, float epsilon)
    • intersectRayPlane

      public static float intersectRayPlane​(float originX, float originY, float originZ, float dirX, float dirY, float dirZ, float a, float b, float c, float d, float epsilon)
    • testAabSphere

      public static boolean testAabSphere​(float minX, float minY, float minZ, float maxX, float maxY, float maxZ, float centerX, float centerY, float centerZ, float radiusSquared)
    • testAabSphere

      public static boolean testAabSphere​(Vector3fc min, Vector3fc max, Vector3fc center, float radiusSquared)
    • findClosestPointOnTriangle

      public static int findClosestPointOnTriangle​(float v0X, float v0Y, float v0Z, float v1X, float v1Y, float v1Z, float v2X, float v2Y, float v2Z, float pX, float pY, float pZ, Vector3f result)
    • findClosestPointOnTriangle

      public static int findClosestPointOnTriangle​(Vector3fc v0, Vector3fc v1, Vector3fc v2, Vector3fc p, Vector3f result)
    • intersectSweptSphereTriangle

      public static int intersectSweptSphereTriangle​(float centerX, float centerY, float centerZ, float radius, float velX, float velY, float velZ, float v0X, float v0Y, float v0Z, float v1X, float v1Y, float v1Z, float v2X, float v2Y, float v2Z, float epsilon, float maxT, Vector4f pointAndTime)
    • testPointInTriangle

      public static boolean testPointInTriangle​(float pX, float pY, float pZ, float v0X, float v0Y, float v0Z, float v1X, float v1Y, float v1Z, float v2X, float v2Y, float v2Z)
    • intersectRaySphere

      public static boolean intersectRaySphere​(float originX, float originY, float originZ, float dirX, float dirY, float dirZ, float centerX, float centerY, float centerZ, float radiusSquared, Vector2f result)
    • intersectRaySphere

      public static boolean intersectRaySphere​(Vector3fc origin, Vector3fc dir, Vector3fc center, float radiusSquared, Vector2f result)
    • testRaySphere

      public static boolean testRaySphere​(float originX, float originY, float originZ, float dirX, float dirY, float dirZ, float centerX, float centerY, float centerZ, float radiusSquared)
    • testRaySphere

      public static boolean testRaySphere​(Vector3fc origin, Vector3fc dir, Vector3fc center, float radiusSquared)
    • testLineSegmentSphere

      public static boolean testLineSegmentSphere​(float p0X, float p0Y, float p0Z, float p1X, float p1Y, float p1Z, float centerX, float centerY, float centerZ, float radiusSquared)
    • testLineSegmentSphere

      public static boolean testLineSegmentSphere​(Vector3fc p0, Vector3fc p1, Vector3fc center, float radiusSquared)
    • intersectRayAab

      public static boolean intersectRayAab​(float originX, float originY, float originZ, float dirX, float dirY, float dirZ, float minX, float minY, float minZ, float maxX, float maxY, float maxZ, Vector2f result)
    • intersectRayAab

      public static boolean intersectRayAab​(Vector3fc origin, Vector3fc dir, Vector3fc min, Vector3fc max, Vector2f result)
    • intersectLineSegmentAab

      public static int intersectLineSegmentAab​(float p0X, float p0Y, float p0Z, float p1X, float p1Y, float p1Z, float minX, float minY, float minZ, float maxX, float maxY, float maxZ, Vector2f result)
    • intersectLineSegmentAab

      public static int intersectLineSegmentAab​(Vector3fc p0, Vector3fc p1, Vector3fc min, Vector3fc max, Vector2f result)
    • testRayAab

      public static boolean testRayAab​(float originX, float originY, float originZ, float dirX, float dirY, float dirZ, float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
    • testRayAab

      public static boolean testRayAab​(Vector3fc origin, Vector3fc dir, Vector3fc min, Vector3fc max)
    • testRayTriangleFront

      public static boolean testRayTriangleFront​(float originX, float originY, float originZ, float dirX, float dirY, float dirZ, float v0X, float v0Y, float v0Z, float v1X, float v1Y, float v1Z, float v2X, float v2Y, float v2Z, float epsilon)
    • testRayTriangleFront

      public static boolean testRayTriangleFront​(Vector3fc origin, Vector3fc dir, Vector3fc v0, Vector3fc v1, Vector3fc v2, float epsilon)
    • testRayTriangle

      public static boolean testRayTriangle​(float originX, float originY, float originZ, float dirX, float dirY, float dirZ, float v0X, float v0Y, float v0Z, float v1X, float v1Y, float v1Z, float v2X, float v2Y, float v2Z, float epsilon)
    • testRayTriangle

      public static boolean testRayTriangle​(Vector3fc origin, Vector3fc dir, Vector3fc v0, Vector3fc v1, Vector3fc v2, float epsilon)
    • intersectRayTriangleFront

      public static float intersectRayTriangleFront​(float originX, float originY, float originZ, float dirX, float dirY, float dirZ, float v0X, float v0Y, float v0Z, float v1X, float v1Y, float v1Z, float v2X, float v2Y, float v2Z, float epsilon)
    • intersectRayTriangleFront

      public static float intersectRayTriangleFront​(Vector3fc origin, Vector3fc dir, Vector3fc v0, Vector3fc v1, Vector3fc v2, float epsilon)
    • intersectRayTriangle

      public static float intersectRayTriangle​(float originX, float originY, float originZ, float dirX, float dirY, float dirZ, float v0X, float v0Y, float v0Z, float v1X, float v1Y, float v1Z, float v2X, float v2Y, float v2Z, float epsilon)
    • intersectRayTriangle

      public static float intersectRayTriangle​(Vector3fc origin, Vector3fc dir, Vector3fc v0, Vector3fc v1, Vector3fc v2, float epsilon)
    • testLineSegmentTriangle

      public static boolean testLineSegmentTriangle​(float p0X, float p0Y, float p0Z, float p1X, float p1Y, float p1Z, float v0X, float v0Y, float v0Z, float v1X, float v1Y, float v1Z, float v2X, float v2Y, float v2Z, float epsilon)
    • testLineSegmentTriangle

      public static boolean testLineSegmentTriangle​(Vector3fc p0, Vector3fc p1, Vector3fc v0, Vector3fc v1, Vector3fc v2, float epsilon)
    • intersectLineSegmentTriangle

      public static boolean intersectLineSegmentTriangle​(float p0X, float p0Y, float p0Z, float p1X, float p1Y, float p1Z, float v0X, float v0Y, float v0Z, float v1X, float v1Y, float v1Z, float v2X, float v2Y, float v2Z, float epsilon, Vector3f intersectionPoint)
    • intersectLineSegmentTriangle

      public static boolean intersectLineSegmentTriangle​(Vector3fc p0, Vector3fc p1, Vector3fc v0, Vector3fc v1, Vector3fc v2, float epsilon, Vector3f intersectionPoint)
    • intersectLineSegmentPlane

      public static boolean intersectLineSegmentPlane​(float p0X, float p0Y, float p0Z, float p1X, float p1Y, float p1Z, float a, float b, float c, float d, Vector3f intersectionPoint)
    • testLineCircle

      public static boolean testLineCircle​(float a, float b, float c, float centerX, float centerY, float radius)
    • intersectLineCircle

      public static boolean intersectLineCircle​(float a, float b, float c, float centerX, float centerY, float radius, Vector3f intersectionCenterAndHL)
    • intersectLineCircle

      public static boolean intersectLineCircle​(float x0, float y0, float x1, float y1, float centerX, float centerY, float radius, Vector3f intersectionCenterAndHL)
    • testAarLine

      public static boolean testAarLine​(float minX, float minY, float maxX, float maxY, float a, float b, float c)
    • testAarLine

      public static boolean testAarLine​(Vector2fc min, Vector2fc max, float a, float b, float c)
    • testAarLine

      public static boolean testAarLine​(float minX, float minY, float maxX, float maxY, float x0, float y0, float x1, float y1)
    • testAarAar

      public static boolean testAarAar​(float minXA, float minYA, float maxXA, float maxYA, float minXB, float minYB, float maxXB, float maxYB)
    • testAarAar

      public static boolean testAarAar​(Vector2fc minA, Vector2fc maxA, Vector2fc minB, Vector2fc maxB)
    • intersectCircleCircle

      public static boolean intersectCircleCircle​(float aX, float aY, float radiusSquaredA, float bX, float bY, float radiusSquaredB, Vector3f intersectionCenterAndHL)
    • intersectCircleCircle

      public static boolean intersectCircleCircle​(Vector2fc centerA, float radiusSquaredA, Vector2fc centerB, float radiusSquaredB, Vector3f intersectionCenterAndHL)
    • testCircleCircle

      public static boolean testCircleCircle​(float aX, float aY, float rA, float bX, float bY, float rB)
    • testCircleCircle

      public static boolean testCircleCircle​(Vector2fc centerA, float radiusSquaredA, Vector2fc centerB, float radiusSquaredB)
    • distancePointLine

      public static float distancePointLine​(float pointX, float pointY, float a, float b, float c)
    • distancePointLine

      public static float distancePointLine​(float pointX, float pointY, float x0, float y0, float x1, float y1)
    • intersectRayLine

      public static float intersectRayLine​(float originX, float originY, float dirX, float dirY, float pointX, float pointY, float normalX, float normalY, float epsilon)
    • intersectRayLine

      public static float intersectRayLine​(Vector2fc origin, Vector2fc dir, Vector2fc point, Vector2fc normal, float epsilon)
    • intersectRayLineSegment

      public static float intersectRayLineSegment​(float originX, float originY, float dirX, float dirY, float aX, float aY, float bX, float bY)
    • intersectRayLineSegment

      public static float intersectRayLineSegment​(Vector2fc origin, Vector2fc dir, Vector2fc a, Vector2fc b)
    • testAarCircle

      public static boolean testAarCircle​(float minX, float minY, float maxX, float maxY, float centerX, float centerY, float radiusSquared)
    • testAarCircle

      public static boolean testAarCircle​(Vector2fc min, Vector2fc max, Vector2fc center, float radiusSquared)
    • findClosestPointOnTriangle

      public static int findClosestPointOnTriangle​(float v0X, float v0Y, float v1X, float v1Y, float v2X, float v2Y, float pX, float pY, Vector2f result)
    • findClosestPointOnTriangle

      public static int findClosestPointOnTriangle​(Vector2fc v0, Vector2fc v1, Vector2fc v2, Vector2fc p, Vector2f result)
    • intersectRayCircle

      public static boolean intersectRayCircle​(float originX, float originY, float dirX, float dirY, float centerX, float centerY, float radiusSquared, Vector2f result)
    • intersectRayCircle

      public static boolean intersectRayCircle​(Vector2fc origin, Vector2fc dir, Vector2fc center, float radiusSquared, Vector2f result)
    • testRayCircle

      public static boolean testRayCircle​(float originX, float originY, float dirX, float dirY, float centerX, float centerY, float radiusSquared)
    • testRayCircle

      public static boolean testRayCircle​(Vector2fc origin, Vector2fc dir, Vector2fc center, float radiusSquared)
    • intersectRayAar

      public static int intersectRayAar​(float originX, float originY, float dirX, float dirY, float minX, float minY, float maxX, float maxY, Vector2f result)
    • intersectRayAar

      public static int intersectRayAar​(Vector2fc origin, Vector2fc dir, Vector2fc min, Vector2fc max, Vector2f result)
    • intersectLineSegmentAar

      public static int intersectLineSegmentAar​(float p0X, float p0Y, float p1X, float p1Y, float minX, float minY, float maxX, float maxY, Vector2f result)
    • intersectLineSegmentAar

      public static int intersectLineSegmentAar​(Vector2fc p0, Vector2fc p1, Vector2fc min, Vector2fc max, Vector2f result)
    • testRayAar

      public static boolean testRayAar​(float originX, float originY, float dirX, float dirY, float minX, float minY, float maxX, float maxY)
    • testRayAar

      public static boolean testRayAar​(Vector2fc origin, Vector2fc dir, Vector2fc min, Vector2fc max)
    • testPointTriangle

      public static boolean testPointTriangle​(float pX, float pY, float v0X, float v0Y, float v1X, float v1Y, float v2X, float v2Y)
    • testPointTriangle

      public static boolean testPointTriangle​(Vector2fc point, Vector2fc v0, Vector2fc v1, Vector2fc v2)
    • testPointAar

      public static boolean testPointAar​(float pX, float pY, float minX, float minY, float maxX, float maxY)
    • testPointCircle

      public static boolean testPointCircle​(float pX, float pY, float centerX, float centerY, float radiusSquared)
    • testCircleTriangle

      public static boolean testCircleTriangle​(float centerX, float centerY, float radiusSquared, float v0X, float v0Y, float v1X, float v1Y, float v2X, float v2Y)
    • testCircleTriangle

      public static boolean testCircleTriangle​(Vector2fc center, float radiusSquared, Vector2fc v0, Vector2fc v1, Vector2fc v2)
    • intersectPolygonRay

      public static int intersectPolygonRay​(float[] verticesXY, float originX, float originY, float dirX, float dirY, Vector2f p)
    • intersectPolygonRay

      public static int intersectPolygonRay​(Vector2fc[] vertices, float originX, float originY, float dirX, float dirY, Vector2f p)
    • intersectLineLine

      public static boolean intersectLineLine​(float ps1x, float ps1y, float pe1x, float pe1y, float ps2x, float ps2y, float pe2x, float pe2y, Vector2f p)