The OpenD Programming Language

euclideanDistance

Computes Euclidean distance between input ranges a and b. The two ranges must have the same length. The three-parameter version stops computation as soon as the distance is greater than or equal to limit (this is useful to save computation if a small distance is sought).

  1. CommonType!(ElementType!(Range1), ElementType!(Range2)) euclideanDistance(Range1 a, Range2 b)
    CommonType!(ElementType!(Range1), ElementType!(Range2))
    euclideanDistance
    (
    Range1
    Range2
    )
    (
    Range1 a
    ,
    Range2 b
    )
    if (
    isInputRange!(Range1) &&
    isInputRange!(Range2)
    )
  2. CommonType!(ElementType!(Range1), ElementType!(Range2)) euclideanDistance(Range1 a, Range2 b, F limit)

Meta