transform.shape: Rotate and scale a shape according to parameters

Description Usage Arguments Value

Description

transform.shape() takes in x coordinates and y coordinates of a point, as well as the penrose's true center. Additional parameters are used to rotate and scale the data.

Usage

1
2
3
## S3 method for class 'shape'
transform(xs, ys, type, core.x = 0, core.y = 0,
  core.rot = 0, core.sca = 1, cent.rot = 0, cent.sca = 1, ticker = 0)

Arguments

xs

numeric vector containing the x coordinates of the points of the shape to be transformed.

ys

numeric vector containing the y coordinates of the points of the shape to be transformed.

core.x

numeric x coordinate of true center of the penrose

core.y

numeric y coordinate of true center of the penrose

core.rot

numeric degrees to rotate the set of all points by, hinged on the true center

core.sca

numeric amount to scale the set of all points by, relative to the true center

cent.rot

numeric degrees to rotate the set of all points by, hinged on the center of points

cent.sca

numeric amount to scale the set of all points by, relative to the center of points

ticker

additional outside parameter for miscellaneous use

Value

list of numeric coordinates for the new shapes from the transform


ash129/penrose documentation built on May 17, 2019, 12:04 p.m.