distance2d | R Documentation |
distance2d()
computes 2D Euclidean distances.
distance2d(x, y)
x |
Either a Coord2D or Line2D class object |
y |
Either a Coord2D or Line2D class object |
p <- as_coord2d(x = 1:4, y = 1:4)
distance2d(p, as_coord2d(0, 0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.