Compute distance using object of class measure
or manifold
.
Usage
distance(d, x1, x2 = NULL)
# S4 method for class 'measure'
distance(d, x1, x2 = NULL)
# S4 method for class 'manifold'
distance(d, x1, x2 = NULL)
Arguments
- d
object of class measure
or manifold
- x1
first coordinate
- x2
second coordinate
Examples
distance(sphere(),matrix(0,1,2),matrix(10,1,2))
#> [,1]
#> [1,] 1568.521
distance(plane(),matrix(0,1,2),matrix(10,1,2))
#> [,1]
#> [1,] 14.14214