Created
March 30, 2014 09:16
-
-
Save ToJans/9870054 to your computer and use it in GitHub Desktop.
What is the best way to do this in F#?
This file contains 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
let povify model = | |
match model with | |
| (v:Vector3D<decimal>) -> sprintf "<%M,%M,%M>" (v.x/1M) (v.y/1M) (v.z/1M) | |
| CubeGeometry c -> | |
let half = c.size/2M | |
sprintf "box {%s %s} " (povify half) (povify vec3D0-half) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment