magnitude

Functionality

Calculates the magnitude of 2D vectors.

Inputs

  • x_in – Floating-point array of x-coordinates of the vectors.
  • y_in – Floating-point array of y-coordinates of the vectors; it must have the same size as x.

Outputs

  • array_out – Output array of the same size and type as x.

Locals

Examples