rects: Rectangles

Description Usage Arguments Value

View source: R/rectangles.R

Description

Compute the 4 corner coordinates of a rectangle parameterised by its centre position (x, y), its length, width and angle of rotation

Usage

1
rects(x, y, angle, length, width)

Arguments

x

Centre of rectangle in x

y

Centre of rectangle in y

angle

Angle (degrees) of rotation (measured from positive x to the rectangle long axis)

length

Length of rectangle

width

Width of rectangle

Value

A dataframe


cj-holmes/gglcd documentation built on July 30, 2020, 9:54 a.m.