pub fn bottom_center(&self) -> Option<Pos> {
		let ps = self.lower();
		if ps.is_empty() {
			None
		} else {
			let (x, y) = ps.iter().fold((0, 0), |(ax, ay), (x, y)| (ax + x, ay + y));
			Some((x / ps.len(), y / ps.len()))
		}
	}
/// Returns center of lower points of the ramp.
Returns center of lower points of the ramp.
Returns center of lower points of the ramp .
pub fn bottom_center(&self) -> Option<Pos> {
		let ps = self.lower();
		if ps.is_empty() {
			None
		} else {
			let (x, y) = ps.iter().fold((0, 0), |(ax, ay), (x, y)| (ax + x, ay + y));
			Some((x / ps.len(), y / ps.len()))
		}
	}
pub fn bottom_center ( & self ) -> Option < Pos > { let ps = self . lower ( ) ; if ps . is_empty ( ) { None } else { let ( x , y ) = ps . iter ( ) . fold ( ( 0 , 0 ) , | ( ax , ay ) , ( x , y ) | ( ax + x , ay + y ) ) ; Some ( ( x / ps . len ( ) , y / ps . len ( ) ) ) } }
Returns center of lower points of the ramp.
Returns center of lower points of the ramp .
&self
&self