length static method

double length(
  1. Vec2D a
)

Implementation

static double length(Vec2D a) {
  double x = a[0];
  double y = a[1];
  return sqrt(x * x + y * y);
}