Learn R Programming

Momocs (version 1.2.9)

coo_angle_edges: Calculates the angle of every edge of a shape

Description

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

Usage

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

# S3 method for default coo_angle_edges(coo, method = c("atan2", "acos")[1])

# S3 method for Coo coo_angle_edges(coo, method = c("atan2", "acos")[1])

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

Arguments

coo

a matrix or a list of (x; y) coordinates or any Coo

method

'atan2' (or 'acos') for a signed (or not) angle.

Value

numeric the angles in radians for every edge.

See Also

Other coo_ descriptors: coo_angle_edge1, coo_angle_tangent, coo_area, coo_boundingbox, coo_chull, coo_circularity, coo_convexity, coo_eccentricity, coo_elongation, coo_length, coo_lw, coo_rectangularity, coo_rectilinearity, coo_solidity, coo_width

Examples

Run this code
# NOT RUN {
b <- coo_sample(bot[1], 64)
coo_angle_edges(b)
# }

Run the code above in your browser using DataLab