/// Calculates squared euclidean distance from `self` to `other`.
Calculates squared euclidean distance from `self` to `other`.
Calculates squared euclidean distance from ` self ` to ` other ` .
fn distance_squared<P: Into<Point2>>(self, other: P) -> f32 {
		let a = self.into();
		let b = other.into();
		let dx = a.x - b.x;
		let dy = a.y - b.y;
		dx * dx + dy * dy
	}
fn distance_squared < P : Into < Point2 > > ( self , other : P ) -> f32 { let a = self . into ( ) ; let b = other . into ( ) ; let dx = a . x - b . x ; let dy = a . y - b . y ; dx * dx + dy * dy }
Calculates squared euclidean distance from `self` to `other`.
Calculates squared euclidean distance from ` self ` to ` other ` .
self
other
P