quick_triangle: quick_triangle

Description Usage Arguments Value Note

View source: R/TeaSetClass.R

Description

creates an equilateral triangle with all sides equal to r centered on a given point

Usage

1
quick_triangle(r = 1, center = c(0, 0), draw = TRUE, ...)

Arguments

r

the side length

center

the center of the triangle, as an xy-coordinate

draw

a boolean indicating whether or not to actually draw the triangle

...

Additional parameters that work with polygon

Value

the coordinates of the triangle's vertices, with the first coordinate relisted at the end

Note

not as flexible as tea_triangle() in the TeaSet class


cmpear/TeaSet_Package documentation built on Jan. 10, 2020, 2:46 a.m.