fn pyramid_with(&self, apex: Point<f64>) -> Self {
        let mut poly = self.pyramid();
        *poly.vertices.last_mut().unwrap() = apex;
        poly
    }
/// Builds a pyramid with a specified apex.
Builds a pyramid with a specified apex.
Builds a pyramid with a specified apex .
fn pyramid_with(&self, apex: Point<f64>) -> Self {
        let mut poly = self.pyramid();
        *poly.vertices.last_mut().unwrap() = apex;
        poly
    }
fn pyramid_with ( & self , apex : Point < f64 > ) -> Self { let mut poly = self . pyramid ( ) ; * poly . vertices . last_mut ( ) . unwrap ( ) = apex ; poly }
Builds a pyramid with a specified apex.
Builds a pyramid with a specified apex .
&self
apex
Point<f64>