vector_length {treePlotArea}R Documentation

Give the Length of a Vector

Description

A vector given by two points in a plane.

Usage

vector_length(p1, p2 = c(0, 0))

Arguments

p1

The first point (x, y).

p2

The second point (x, y).

Value

The length of the vector.

See Also

Other geometry functions: get_intersection(), points2equation()

Examples

p1 <- c(0, 4)
vector_length(p1)
p2 <- c(3, 4)
vector_length(p1, p2)

[Package treePlotArea version 2.1.0 Index]