Class Frustum

java.lang.Object
net.minecraft.client.renderer.culling.Frustum

public class Frustum extends Object
  • Field Details

    • OFFSET_STEP

      public static final int OFFSET_STEP
      See Also:
    • intersection

      private final org.joml.FrustumIntersection intersection
    • matrix

      private final org.joml.Matrix4f matrix
    • viewVector

      private org.joml.Vector4f viewVector
    • camX

      private double camX
    • camY

      private double camY
    • camZ

      private double camZ
  • Constructor Details

    • Frustum

      public Frustum(org.joml.Matrix4f p_254207_, org.joml.Matrix4f p_254535_)
    • Frustum

      public Frustum(Frustum pOther)
  • Method Details

    • offsetToFullyIncludeCameraCube

      public Frustum offsetToFullyIncludeCameraCube(int pOffset)
    • prepare

      public void prepare(double pCamX, double pCamY, double pCamZ)
    • calculateFrustum

      private void calculateFrustum(org.joml.Matrix4f p_253909_, org.joml.Matrix4f p_254521_)
    • isVisible

      public boolean isVisible(AABB pAabb)
    • cubeInFrustum

      public int cubeInFrustum(BoundingBox pBoundingBox)
    • cubeInFrustum

      private int cubeInFrustum(double pMinX, double pMinY, double pMinZ, double pMaxX, double pMaxY, double pMaxZ)
    • getFrustumPoints

      public org.joml.Vector4f[] getFrustumPoints()
    • getCamX

      public double getCamX()
    • getCamY

      public double getCamY()
    • getCamZ

      public double getCamZ()