/// Create a Vec3f with all components set to the same scalar
Create a Vec3f with all components set to the same scalar
Create a Vec3f with all components set to the same scalar
pub fn from_scalar<T: CastF32>(s: T) -> Vec3f {
        let f = s.as_f32();
        Vec3f {
            x: f,
            y: f,
            z: f
        }
    }
pub fn from_scalar < T : CastF32 > ( s : T ) -> Vec3f { let f = s . as_f32 ( ) ; Vec3f { x : f , y : f , z : f } }
Create a Vec3f with all components set to the same scalar
Create a Vec3f with all components set to the same scalar
s
T