Created
January 28, 2015 08:07
-
-
Save timsgardner/ece978bc5a91e86bc7dd to your computer and use it in GitHub Desktop.
vector reader
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
(binding [*data-readers* {'v3 (fn [[x y z]] (UnityEngine.Vector3. x y z))}] | |
(eval (read-string "#v3[1 2 3]"))) | |
;; => (1.0, 2.0, 3.0) |
nasser
commented
Jan 28, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment