pub fn apply_intensity(&self, _object: &Polyhedron) -> image::Rgb<u8> {
        unimplemented!("apply_intensity");
        /*
        image::Rgb([
            object.color[0] + self.intensity,
            object.color[1] + self.intensity,
            object.color[2] + self.intensity,
        ])*/
    }
/// Applies the intensity of the light to an object and return the new color.
///
/// # Note
/// This function is flawed in a similar fashion to Scene::apply_ambient(). It shouldn't add,
/// but should instead scale. This function is also unsafe for the moment, as it may cause an
/// overflow (This will result in a panic).
Applies the intensity of the light to an object and return the new color.
Applies the intensity of the light to an object and return the new color .
pub fn apply_intensity(&self, _object: &Polyhedron) -> image::Rgb<u8> {
        unimplemented!("apply_intensity");
        /*
        image::Rgb([
            object.color[0] + self.intensity,
            object.color[1] + self.intensity,
            object.color[2] + self.intensity,
        ])*/
    }
pub fn apply_intensity ( & self , _object : & Polyhedron ) -> image :: Rgb < u8 > { unimplemented ! ( " " ) ; /*
        image::Rgb([
            object.color[0] + self.intensity,
            object.color[1] + self.intensity,
            object.color[2] + self.intensity,
        ])*/ }
Applies the intensity of the light to an object and return the new color.
Applies the intensity of the light to an object and return the new color .
&self
_object
&Polyhedron
note
This function is flawed in a similar fashion to Scene::apply_ambient(). It shouldn't add,
but should instead scale. This function is also unsafe for the moment, as it may cause an
overflow (This will result in a panic).
This function is flawed in a similar fashion to Scene :: apply_ambient () . It shouldn ' t add but should instead scale . This function is also unsafe for the moment as it may cause an overflow ( This will result in a panic ) .