fn calc_front_solar_dc_matrix(
        list: &[SolarSurface],
        scene: &Scene,
        dc_factory: &DCFactory,
    ) -> Matrix {
        if list.is_empty() {
            return Matrix::empty();
        }

        // Calculate the front
        let front_dcs: Vec<Matrix> = list
            .iter()
            .map(|s| s.front_solar_irradiance(scene, dc_factory))
            .collect();
        let mut front = front_dcs[0].clone();
        for dc in front_dcs.iter().skip(1) {
            front.concat_rows(dc).unwrap();
        }

        // return
        front
    }
/// Receives a list of `SolarSurface` objects as well as the `Scene` containing them and
/// calculates the front Daylight Coefficient Matrix that can be used for
/// estimating the incident solar radiation in W/m2. The options for this calculation are
/// contained in the `DCFactory` used as input.
Receives a list of `SolarSurface` objects as well as the `Scene` containing them and
calculates the front Daylight Coefficient Matrix that can be used for
estimating the incident solar radiation in W/m2. The options for this calculation are
contained in the `DCFactory` used as input.
Receives a list of ` SolarSurface ` objects as well as the ` Scene ` containing them and calculates the front Daylight Coefficient Matrix that can be used for estimating the incident solar radiation in W / m2 . The options for this calculation are contained in the ` DCFactory ` used as input .
fn calc_front_solar_dc_matrix(
        list: &[SolarSurface],
        scene: &Scene,
        dc_factory: &DCFactory,
    ) -> Matrix {
        if list.is_empty() {
            return Matrix::empty();
        }
        // Calculate the front
        let front_dcs: Vec<Matrix> = list
            .iter()
            .map(|s| s.front_solar_irradiance(scene, dc_factory))
            .collect();
        let mut front = front_dcs[0].clone();
        for dc in front_dcs.iter().skip(1) {
            front.concat_rows(dc).unwrap();
        }
        // return
        front
    }
fn calc_front_solar_dc_matrix ( list : & [ SolarSurface ] , scene : & Scene , dc_factory : & DCFactory , ) -> Matrix { if list . is_empty ( ) { return Matrix :: empty ( ) ; } // Calculate the front let front_dcs : Vec < Matrix > = list . iter ( ) . map ( | s | s . front_solar_irradiance ( scene , dc_factory ) ) . collect ( ) ; let mut front = front_dcs [ 0 ] . clone ( ) ; for dc in front_dcs . iter ( ) . skip ( 1 ) { front . concat_rows ( dc ) . unwrap ( ) ; } // return front }
Receives a list of `SolarSurface` objects as well as the `Scene` containing them and
calculates the front Daylight Coefficient Matrix that can be used for
estimating the incident solar radiation in W/m2.
Receives a list of ` SolarSurface ` objects as well as the ` Scene ` containing them and calculates the front Daylight Coefficient Matrix that can be used for estimating the incident solar radiation in W / m2 .
list
&[SolarSurface]
scene
&Scene
dc_factory
&DCFactory
list
&[SolarSurface]
scene
&Scene
dc_factory
&DCFactory