Class OrientedBoundingBox

java.lang.Object
com.ticxo.modelengine.api.utils.math.OrientedBoundingBox

public class OrientedBoundingBox extends Object
Oriented Bounding Box intersection detection using Separating Axis Theorem
  • Constructor Summary

    Constructors
    Constructor
    Description
    OrientedBoundingBox(double minX, double minY, double minZ, double maxX, double maxY, double maxZ)
     
    OrientedBoundingBox(org.bukkit.util.Vector origin, org.bukkit.util.Vector dimension, org.bukkit.util.EulerAngle rotation, float yaw)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
    intersects(org.bukkit.util.BoundingBox aabb)
     
    org.bukkit.util.RayTraceResult
    rayTrace(@NotNull org.bukkit.util.Vector start, @NotNull org.bukkit.util.Vector direction, double maxDistance, org.bukkit.util.Consumer<org.bukkit.util.BoundingBox> consumer)
     
    void
    visualize(org.bukkit.World world)
     

    Methods inherited from class java.lang.Object

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

    • OrientedBoundingBox

      public OrientedBoundingBox(double minX, double minY, double minZ, double maxX, double maxY, double maxZ)
    • OrientedBoundingBox

      public OrientedBoundingBox(org.bukkit.util.Vector origin, org.bukkit.util.Vector dimension, org.bukkit.util.EulerAngle rotation, float yaw)
  • Method Details

    • intersects

      public boolean intersects(org.bukkit.util.BoundingBox aabb)
    • intersects

      public boolean intersects(OrientedBoundingBox obb)
    • rayTrace

      public org.bukkit.util.RayTraceResult rayTrace(@NotNull @NotNull org.bukkit.util.Vector start, @NotNull @NotNull org.bukkit.util.Vector direction, double maxDistance, org.bukkit.util.Consumer<org.bukkit.util.BoundingBox> consumer)
    • visualize

      public void visualize(org.bukkit.World world)