Math Quadratic Distance 2D

Quadratic distance 2D calculated as:

X1,Y1,X2,Y2 can be arrays.

multiplexed

When ON the result will be a multiplexed array of size size of 1 x size of 2 as follow:

  [
  dist(1[0],2[0]),
  dist(1[0],2[1]),
  dist(1[0],2[2]),
  ...,
  dist(1[1],2[0]),
  dist(1[1],2[1]),
  dist(1[1],2[2]),
  ...]

When OFF be a multiplexed array of size max(size of 1 , size of 2) as follow

  [
  dist(1[0],2[0]),
  dist(1[1],2[1]),
  dist(1[2],2[2]),
  ...]

See also

version 4.1.201021 GWPD birthday

Edit All Pages