coo_thetapts: Calculates the angle of every edge of a shape

Description Usage Arguments Value See Also Examples

View source: R/coo-shapedescriptors.R

Description

Returns the angle (in radians) of every edge of a shape,

Usage

1
coo_thetapts(coo, method = c("atan2", "acos")[1])

Arguments

coo

a matrix or a list of (x; y) coordinates.

method

one of 'atan2' or 'acos' for a signed or not angle.

Value

numeric the angles in radians for every edge.

See Also

Other coo_ descriptors: coo_area, coo_boundingbox, coo_chull, coo_circularityharalick, coo_circularitynorm, coo_circularity, coo_convexity, coo_eccentricityboundingbox, coo_eccentricityeigen, coo_elongation, coo_length, coo_lw, coo_rectangularity, coo_rectilinearity, coo_solidity, coo_tangle, coo_theta3, coo_width

Examples

1
2
3
data(bot)
b <- coo_sample(bot[1], 64)
coo_thetapts(b)

Momocs documentation built on Sept. 28, 2017, 9:04 a.m.