angle_adj: Horizontal and Vertical Dimensions of a Rectangle after...

View source: R/plotting_util.bare.R

angle_adjR Documentation

Horizontal and Vertical Dimensions of a Rectangle after Rotation

Description

Calculate the horizontal and vertical dimensions of a rectangle after rotation by angle theta (in degrees). This is an internal function, not intended to be called by package users.

Usage

angle_adj(hsize, vsize, theta)

Arguments

hsize, vsize

Numeric scalars, the width and height of a rectangle oriented parallel to the coordinate axes, with one corner at the origin.

theta

Rotation angle, in degrees.

Value

Two-element vector with the new width and height, with respect to the original axes, of the rotated rectangle.


tablesgg documentation built on June 22, 2024, 11:02 a.m.