diff --git a/rtiow/vec3/src/vec3.rs b/rtiow/vec3/src/vec3.rs index af956f1..b320e2f 100644 --- a/rtiow/vec3/src/vec3.rs +++ b/rtiow/vec3/src/vec3.rs @@ -115,6 +115,18 @@ impl Add for Vec3 { } } +impl Div for Vec3 { + type Output = Vec3; + + fn div(self, r: Vec3) -> Vec3 { + Vec3 { + x: self.x / r.x, + y: self.y / r.y, + z: self.z / r.z, + } + } +} + impl Div for f32 { type Output = Vec3;