distanceSquared method

double distanceSquared(
  1. Offset other
)

Implementation

double distanceSquared(Offset other) {
  final dx = this.dx - other.dx;
  final dy = this.dy - other.dy;
  return dx * dx + dy * dy;
}