fn magnitude(a: Vec2, b: Vec2) -> u32 {
  let [ax, ay] = a;
  let [bx, by] = b;
  to_u32((bx - ax).pow(2) + (by - ay).pow(2))
}
/// returns the square of the distance between `a` and `b`
returns the square of the distance between `a` and `b`
returns the square of the distance between ` a ` and ` b `
fn magnitude(a: Vec2, b: Vec2) -> u32 {
  let [ax, ay] = a;
  let [bx, by] = b;
  to_u32((bx - ax).pow(2) + (by - ay).pow(2))
}
fn magnitude ( a : Vec2 , b : Vec2 ) -> u32 { let [ ax , ay ] = a ; let [ bx , by ] = b ; to_u32 ( ( bx - ax ) . pow ( 2 ) + ( by - ay ) . pow ( 2 ) ) }
returns the square of the distance between `a` and `b`
returns the square of the distance between ` a ` and ` b `
a
Vec2
b
Vec2
a
Vec2
b
Vec2