Learn R Programming

Momocs (version 1.4.1)

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])

Value

numeric the angles in radians for every edge.

Arguments

coo

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

method

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

See Also

Other coo_ descriptors: 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_scalars(), coo_solidity(), coo_tac(), coo_width()

Examples

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

Run the code above in your browser using DataLab