pub fn distance_squared_2d(left: Point2, right: Point2) -> f64Expand description
Returns the squared Euclidean distance between two 2D points.
ยงExamples
use use_geometry::{Point2, distance_squared_2d};
let left = Point2::new(0.0, 0.0);
let right = Point2::new(3.0, 4.0);
assert_eq!(distance_squared_2d(left, right), 25.0);