Class BoundedCube

java.lang.Object
dev.secondsun.util.BoundedCube

public class BoundedCube extends Object
This class will create an axis aligned BSP tree bounding box around a model.

Top/Bottom is positive y axis aligned Right/Left is positive x axis aligned Near/Far is positive z axis aligned

  • Field Details

    • model

      public final Model model
    • top

      public float top
    • bottom

      public float bottom
    • left

      public float left
    • near

      public float near
    • far

      public float far
  • Constructor Details

    • BoundedCube

      public BoundedCube(Model model)
  • Method Details

    • isBehind

      public boolean isBehind(Plane partition)
    • isInFront

      public boolean isInFront(Plane partition)