pub fn upper(&self) -> Vec<Pos> {
		let mut max = u8::MIN;
		let mut result = Vec::new();

		for &p in &self.points {
			let h = self.height[p];
			match h.cmp(&max) {
				Ordering::Greater => {
					max = h;
					result = vec![p];
				}
				Ordering::Equal => result.push(p),
				_ => {}
			}
		}

		result
	}
/// Returns only upper points of the ramp.
Returns only upper points of the ramp.
Returns only upper points of the ramp .
pub fn upper(&self) -> Vec<Pos> {
		let mut max = u8::MIN;
		let mut result = Vec::new();
		for &p in &self.points {
			let h = self.height[p];
			match h.cmp(&max) {
				Ordering::Greater => {
					max = h;
					result = vec![p];
				}
				Ordering::Equal => result.push(p),
				_ => {}
			}
		}
		result
	}
pub fn upper ( & self ) -> Vec < Pos > { let mut max = u8 :: MIN ; let mut result = Vec :: new ( ) ; for & p in & self . points { let h = self . height [ p ] ; match h . cmp ( & max ) { Ordering :: Greater => { max = h ; result = vec ! [ p ] ; } Ordering :: Equal => result . push ( p ) , _ => { } } } result }
Returns only upper points of the ramp.
Returns only upper points of the ramp .
&self
&self