Class TileGeometryUtils

java.lang.Object
zombie.tileDepth.TileGeometryUtils

public final class TileGeometryUtils extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getCameraRay(float uiX, float uiY, org.joml.Matrix4f projection, org.joml.Matrix4f modelView, int viewWidth, int viewHeight, UI3DScene.Ray camera_ray)
     
    static float
    getDepthOnBoxAt(float tileX, float tileY, org.joml.Vector3f center, org.joml.Vector3f rotation, org.joml.Vector3f min, org.joml.Vector3f max)
     
    static float
    getDepthOnCylinderAt(float tileX, float tileY, org.joml.Vector3f center, org.joml.Vector3f rotation, float radius, float zLength)
     
    static float
    getDepthOnPlaneAt(float tileX, float tileY, org.joml.Vector3f planePoint, org.joml.Vector3f planeNormal)
     
    static float
    getDepthOnPlaneAt(float tileX, float tileY, org.joml.Vector3f planePoint, org.joml.Vector3f planeNormal, org.joml.Vector3f pointOnPlane)
     
    static float
    getDepthOnPlaneAt(float tileX, float tileY, UI3DScene.GridPlane gridPlane, org.joml.Vector3f planePoint)
     
    static float
    getNormalizedDepthOnBoxAt(float tileX, float tileY, org.joml.Vector3f center, org.joml.Vector3f rotation, org.joml.Vector3f min, org.joml.Vector3f max)
     
    static float
    getNormalizedDepthOnCylinderAt(float tileX, float tileY, org.joml.Vector3f center, org.joml.Vector3f rotation, float radius, float zLength)
     
    static float
    getNormalizedDepthOnPlaneAt(float tileX, float tileY, org.joml.Vector3f planePoint, org.joml.Vector3f planeNormal)
     
    static float
    getNormalizedDepthOnPlaneAt(float tileX, float tileY, UI3DScene.GridPlane gridPlane, org.joml.Vector3f planePoint)
     
    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, org.joml.Vector2f result)
     

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TileGeometryUtils

      public TileGeometryUtils()
  • Method Details

    • getDepthOnBoxAt

      public static float getDepthOnBoxAt(float tileX, float tileY, org.joml.Vector3f center, org.joml.Vector3f rotation, org.joml.Vector3f min, org.joml.Vector3f max)
    • getDepthOnCylinderAt

      public static float getDepthOnCylinderAt(float tileX, float tileY, org.joml.Vector3f center, org.joml.Vector3f rotation, float radius, float zLength)
    • getDepthOnPlaneAt

      public static float getDepthOnPlaneAt(float tileX, float tileY, UI3DScene.GridPlane gridPlane, org.joml.Vector3f planePoint)
    • getDepthOnPlaneAt

      public static float getDepthOnPlaneAt(float tileX, float tileY, org.joml.Vector3f planePoint, org.joml.Vector3f planeNormal)
    • getDepthOnPlaneAt

      public static float getDepthOnPlaneAt(float tileX, float tileY, org.joml.Vector3f planePoint, org.joml.Vector3f planeNormal, org.joml.Vector3f pointOnPlane)
    • getNormalizedDepthOnBoxAt

      public static float getNormalizedDepthOnBoxAt(float tileX, float tileY, org.joml.Vector3f center, org.joml.Vector3f rotation, org.joml.Vector3f min, org.joml.Vector3f max)
    • getNormalizedDepthOnCylinderAt

      public static float getNormalizedDepthOnCylinderAt(float tileX, float tileY, org.joml.Vector3f center, org.joml.Vector3f rotation, float radius, float zLength)
    • getNormalizedDepthOnPlaneAt

      public static float getNormalizedDepthOnPlaneAt(float tileX, float tileY, org.joml.Vector3f planePoint, org.joml.Vector3f planeNormal)
    • getNormalizedDepthOnPlaneAt

      public static float getNormalizedDepthOnPlaneAt(float tileX, float tileY, UI3DScene.GridPlane gridPlane, org.joml.Vector3f planePoint)
    • getCameraRay

      public static UI3DScene.Ray getCameraRay(float uiX, float uiY, org.joml.Matrix4f projection, org.joml.Matrix4f modelView, int viewWidth, int viewHeight, UI3DScene.Ray camera_ray)
    • 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, org.joml.Vector2f result)