menu
three_dart package
documentation
three3d/math/vector2.dart
Vector2
distanceToSquared method
distanceToSquared method
dark_mode
light_mode
distanceToSquared
method
num
distanceToSquared
(
Vector2
v
)
Implementation
num distanceToSquared(Vector2 v) { var dx = x - v.x, dy = y - v.y; return dx * dx + dy * dy; }
three_dart package
documentation
three3d/math/vector2
Vector2
distanceToSquared method
Vector2 class