dist3D: Calculate the distance between two 3D points

Description Usage Arguments Value References Examples

Description

Calculate the distance between two 3D points

Usage

1
dist3D(point1, point2)

Arguments

point1

The location of the first point as a numeric vector of length 3 c(X,Y,Z) or ordered list

point2

The location of the second point as a numeric vector of length 3 c(X,Y,Z) or ordered list

Value

numeric distance between two points

References

http://www.calculatorsoup.com/calculators/geometry-solids/distance-two-points.php

Examples

1
2
3
dist3D(c(5,6,2),c(-7,11,-13))
dist3D(list(c(0,0),c(0:0),c(0,0)),list(1:2,3:4,5:6))
dist3D(list(5,6,2),list(-7,11,-13))

drknexus/repsych documentation built on May 15, 2019, 2:19 p.m.