diff --git a/src/vec_spec.rs b/src/vec_spec.rs index f832e903..a509921c 100644 --- a/src/vec_spec.rs +++ b/src/vec_spec.rs @@ -179,6 +179,13 @@ static SAMPLES_3_F64: [Vec3, ..42] = [ Vec3 { x: 0.162456 , y: 0.499995 , z: 0.850654 } ]; +impl UniformSphereSample for Vec1 { + #[inline(always)] + fn sample(f: &fn(Vec1)) { + f(One::one()) + } +} + impl UniformSphereSample for Vec2 { #[inline(always)] fn sample(f: &fn(Vec2)) {