Learn R Programming

Momocs (version 1.4.1)

coo_angle_tangent: Calculates the tangent angle along the perimeter of a shape

Description

Calculated using complex numbers and returned in radians minus the first one (modulo 2*pi).

Usage

coo_angle_tangent(coo)

# S3 method for default coo_angle_tangent(coo)

# S3 method for Coo coo_angle_tangent(coo)

coo_tangle(coo)

Value

numeric, the tangent angle along the perimeter, or a list of those for Coo

Arguments

coo

a matrix of coordinates or any Coo

See Also

tfourier

Other coo_ descriptors: coo_angle_edges(), 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 <- bot[1]
phi  <- coo_angle_tangent(b)
phi2 <- coo_angle_tangent(coo_smooth(b, 2))
plot(phi, type='l')
plot(phi2, type='l', col='red') # ta is very sensible to noise

# on Coo
bot %>% coo_angle_tangent

Run the code above in your browser using DataLab