Learn R Programming

tablesgg (version 0.9-1)

angle_adj: 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)

Value

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

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.