pointwise.angles.atan2: Extract angles between all points in a certain radius

Description Usage Arguments Value Examples

View source: R/Angular-functions.R

Description

Takes a set of x, y coordinates and, using atan2, returns a matrix of the angles from each point defined to all points within a specified radoius. (If no radius is specified, the angles from each point to every other point are returned)

Usage

1

Arguments

pts

A two-column matrix containing the coordinates of the points to be compared.

radius

The radius (in the coordinate system of the plan) defining the area around each point within which the angles will be calculated.

Value

A (n x n+2) matrix containing the x, y coordinates in its first two columns, and the angles measured to every other point in the remaining columns. If no angle was measured, NA is returned in the appropriate cell.

Examples

1
r0.2 <- pointwise.angles.atan2(p, radius = 5)

ClairBee/AS.angles documentation built on May 6, 2019, 11:50 a.m.