menu
openworld package
documentation
three_dart/three3d/math/index.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; }
openworld package
documentation
three_dart/three3d/math/index
Vector2
distanceToSquared method
Vector2 class