Created
August 21, 2014 09:46
-
-
Save tbillington/44b96a20c4e75d369428 to your computer and use it in GitHub Desktop.
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
// Geometric vertex (v) | |
pub struct GeometericVertex { | |
pub x: f64, | |
pub y: f64, | |
pub z: f64, | |
} | |
fn new_make_geometric_vertex<Y, T: Index<uint,Y>>(d: T) -> GeometericVertex { | |
GeometericVertex { x: d[0], y: d[1], z: d[2] } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment