pub fn corner_depots(&self) -> Option<[Point2; 2]> {
		if let Some(ps) = self.upper2_for_ramp_wall() {
			let p1 = Point2::from(ps[0]);
			let p2 = Point2::from(ps[1]);

			let center = (p1 + p2) / 2.0;
			return center.circle_intersection(self.depot_in_middle()?, 5_f32.sqrt());
		}
		None
	}
/// Returns correct positions to build corner supplies in terran wall.
Returns correct positions to build corner supplies in terran wall.
Returns correct positions to build corner supplies in terran wall .
pub fn corner_depots(&self) -> Option<[Point2; 2]> {
		if let Some(ps) = self.upper2_for_ramp_wall() {
			let p1 = Point2::from(ps[0]);
			let p2 = Point2::from(ps[1]);
			let center = (p1 + p2) / 2.0;
			return center.circle_intersection(self.depot_in_middle()?, 5_f32.sqrt());
		}
		None
	}
pub fn corner_depots ( & self ) -> Option < [ Point2 ; 2 ] > { if let Some ( ps ) = self . upper2_for_ramp_wall ( ) { let p1 = Point2 :: from ( ps [ 0 ] ) ; let p2 = Point2 :: from ( ps [ 1 ] ) ; let center = ( p1 + p2 ) / 2.0 ; return center . circle_intersection ( self . depot_in_middle ( ) ? , 5_f32 . sqrt ( ) ) ; } None }
Returns correct positions to build corner supplies in terran wall.
Returns correct positions to build corner supplies in terran wall .
&self
&self