Skip to content

Instantly share code, notes, and snippets.

View thehydrogen's full-sized avatar

Aleks Xhuvani thehydrogen

View GitHub Profile
@aadnk
aadnk / AABB.java
Created October 23, 2013 18:25
A simple AABB intersection algorithm for Bukkit. Returns the intersection point as well.
/**
* Represents an axix-aligned bounding box.
*
* @author Kristian
*/
public class AABB {
public static class Vec3D {
/**
* Point with the coordinate (1, 1, 1).
*/