Trait rust_sc2::distance::Distance [−][src]
pub trait Distance: Into<Point2> { fn distance_squared<P: Into<Point2>>(self, other: P) -> f32 { ... } fn distance<P: Into<Point2>>(self, other: P) -> f32 { ... } fn is_closer<P: Into<Point2>>(self, distance: f32, other: P) -> bool { ... } fn is_further<P: Into<Point2>>(self, distance: f32, other: P) -> bool { ... } }
Expand description
Basic trait for comparing distance.