Skip to contents

This trigonometric helper calculates the angle of the diagonal for a rectangle of given dimensions.

Usage

degrees(h, w = 1)

Arguments

h, w

pairwise height & width vectors representing input proportions

Value

Returns a vector of angles in degrees

Examples

degrees(0, 1)
#> [1] 0
degrees(1, 1)
#> [1] 45
degrees(1, 0)
#> [1] 90