diff options
Diffstat (limited to 'src/math.rs')
-rw-r--r-- | src/math.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/math.rs b/src/math.rs index 9a9f7b8..e266a88 100644 --- a/src/math.rs +++ b/src/math.rs @@ -19,12 +19,8 @@ pub struct Vector { } impl Vector { - pub fn new(v: (f64, f64, f64)) -> Vector { - Vector { - x: v.0, - y: v.1, - z: v.2, - } + pub fn new(x: f64, y: f64, z: f64) -> Vector { + Vector { x, y, z } } pub fn distance_from(&self, other: Vector) -> f64 { |