Class OrientedBoundingBox
java.lang.Object
com.ticxo.modelengine.api.utils.math.OrientedBoundingBox
Oriented Bounding Box intersection detection using
Separating Axis Theorem
-
Constructor Summary
ConstructorDescriptionOrientedBoundingBox
(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 TypeMethodDescriptionboolean
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)
-
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
-
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)
-