triangle2: Generate triangle boundaries

Description Usage Arguments Examples

View source: R/triangle2.R

Description

Generate boundaries of equilateral triangles of height S.

Usage

1

Arguments

S

height of the generated triangle.

Examples

1
2
3
4
5
gamma.fun = triangle2(0.5)
theta.plot = seq(from = 0, to = 2*pi, length.out = 200)
x = gamma.fun(theta.plot)*cos(theta.plot)
y = gamma.fun(theta.plot)*sin(theta.plot)
plot(x,y,type = 'l', axes=TRUE, frame.plot=FALSE)

Example output



BayesBD documentation built on May 1, 2019, 10:17 p.m.