Learn R Programming

Momocs (version 1.1.6)

coo_thetapts: Calculates the angle of every edge of a shape

Description

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

Usage

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

Run this code
data(bot)
b <- coo_sample(bot[1], 64)
coo_thetapts(b)

Run the code above in your browser using DataLab