Skip to content

Instantly share code, notes, and snippets.

@joneshf
Last active December 17, 2015 17:49
Show Gist options
  • Save joneshf/5649166 to your computer and use it in GitHub Desktop.
Save joneshf/5649166 to your computer and use it in GitHub Desktop.
vector intersection
(define (intersect? a b)
(parallel? (vector-product (get-direction a)
(get-direction b))
(vector-product (create-vector (- (get-point a)
(get-point b)))
(get-direction b))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment