This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Tetrahedron intersection based on this paper & algorithm: | |
;; http://vcg.isti.cnr.it/Publications/2003/GPR03/fast_tetrahedron_tetrahedron_overlap_algorithm.pdf | |
;; | |
;; Unlike original algorithm this implementation produces correct | |
;; results regardless of the orientation/ordering of points defining | |
;; the two tetrahedra. This is achieved via the orient-tetra function, | |
;; which ensures the correct ordering of vertices for this algorithm | |
;; to function properly. | |
;; | |
;; Implementation extracted from upcoming geometry library |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns braintree-clj.core | |
(:import [com.braintreegateway BraintreeGateway Environment TransactionRequest Transaction$Type]) | |
(:require [clojure.string :as s] | |
[hiccup.core :as hiccup] | |
[hiccup.page-helpers :as page-helper] | |
[noir.core :as noir] | |
[noir.request :as noir-req] |