projects
/
mandelwow.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Disable local repositories for glutin and glium.
[mandelwow.git]
/
cube.rs
1
use std::f32;
2
3
#[derive(Copy, Clone, Debug)]
4
pub struct Cube {
5
pub xmin: f32,
6
pub ymin: f32,
7
pub zmin: f32,
8
pub xmax: f32,
9
pub ymax: f32,
10
pub zmax: f32,
11
}
12
13
// Returns a unit Cube centered in the origin.
14
impl Default for Cube {
15
fn default() -> Cube {
16
Cube { xmin: -0.5, ymin: -0.5, zmin: -0.5, xmax: 0.5, ymax: 0.5, zmax: 0.5f32 }
17
}
18
}