vector →
distance(
    vector: vector
) → numeric

Returns the Euclidean distance between the input vector and another vector of the same dimension.

Parameters

Name Type Required Description
vector vector Yes Specifies the vector whose distance from the input vector is calculated.

Argument evaluation

  • vector: Evaluated once in the enclosing context.

Examples

V(1, 2) | distance(V(4, 6))  5

Kind: Function
Scope: vector
Aliases: None


This site uses Just the Docs, a documentation theme for Jekyll.