rects: Genereate rectangle corner coordinates

Description Usage Arguments Details Value

View source: R/rectangles.R

Description

Returns corner coordinates for a rectangle parameterise by its center (x,y), angle of rotation (measured from positive x in radians), length and width. Coordinates are labelled P1 to P4 from top right and moving clockwise

Usage

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

Arguments

x

Rectangle centre x coordinate

y

Rectangle centre y coordinate

angle

Rectangle angle of rotation (measured from positive x in radians)

length

Rectangle length

width

Rectangle width

Details

Length P4————————————P1 | | | | Width | | P3————————————P2

Value

A dataframe of the 4 corner coordinates


dickie-roper/lcdiagrammer documentation built on Nov. 4, 2019, 10:31 a.m.