Class TileGeometryUtils
java.lang.Object
zombie.tileDepth.TileGeometryUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UI3DScene.RaygetCameraRay(float uiX, float uiY, org.joml.Matrix4f projection, org.joml.Matrix4f modelView, int viewWidth, int viewHeight, UI3DScene.Ray camera_ray) static floatgetDepthOnBoxAt(float tileX, float tileY, org.joml.Vector3f center, org.joml.Vector3f rotation, org.joml.Vector3f min, org.joml.Vector3f max) static floatgetDepthOnCylinderAt(float tileX, float tileY, org.joml.Vector3f center, org.joml.Vector3f rotation, float radius, float zLength) static floatgetDepthOnPlaneAt(float tileX, float tileY, org.joml.Vector3f planePoint, org.joml.Vector3f planeNormal) static floatgetDepthOnPlaneAt(float tileX, float tileY, org.joml.Vector3f planePoint, org.joml.Vector3f planeNormal, org.joml.Vector3f pointOnPlane) static floatgetDepthOnPlaneAt(float tileX, float tileY, UI3DScene.GridPlane gridPlane, org.joml.Vector3f planePoint) static floatgetNormalizedDepthOnBoxAt(float tileX, float tileY, org.joml.Vector3f center, org.joml.Vector3f rotation, org.joml.Vector3f min, org.joml.Vector3f max) static floatgetNormalizedDepthOnCylinderAt(float tileX, float tileY, org.joml.Vector3f center, org.joml.Vector3f rotation, float radius, float zLength) static floatgetNormalizedDepthOnPlaneAt(float tileX, float tileY, org.joml.Vector3f planePoint, org.joml.Vector3f planeNormal) static floatgetNormalizedDepthOnPlaneAt(float tileX, float tileY, UI3DScene.GridPlane gridPlane, org.joml.Vector3f planePoint) static booleanintersectRayAab(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)
-
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)
-