Other articles


  1. Axis-Aligned Bounding Box

    NOTE: I originally posted this on Snipplr.

    make-aabb [a-point b-point] [a-point b-point]: Creates a 3D Axis-Aligned Bounding Box (AABB).

    aabb-contains? [a-box a-point]: Returns true if a 3D AABB contains a given point.

    (ns aabb)
    
    (defn ^{
        :doc "Creates a 3D Axis-Aligned Bounding Box (AABB)."
    } make-aabb [a-point b-point] [a-point b-point])
    
    (defn ^{
        :doc …
    read more

Sections