menu
three_dart package
documentation
three3d/math/vector2.dart
Vector2
manhattanDistanceTo method
manhattanDistanceTo method
dark_mode
light_mode
manhattanDistanceTo
method
num
manhattanDistanceTo
(
Vector2
v
)
Implementation
num manhattanDistanceTo(Vector2 v) { return (Math.abs(x - v.x) + Math.abs(y - v.y)).toDouble(); }
three_dart package
documentation
three3d/math/vector2
Vector2
manhattanDistanceTo method
Vector2 class