generate_obstacle: Generate Obstacle

Description Usage Arguments Examples

View source: R/generate_obstacle.R

Description

Generate an obstacle (simple polygon) for a random set of vertices

Usage

1
2
generate_obstacle(n, s = 2, width = 1, height = 1, dist = "runif",
  convex = FALSE, animate = FALSE)

Arguments

n

The desired number of vertices

s

Scaling factor: number of starting points is n*s

width

Obstacle width

height

Obstacle height

dist

Distribution for generating starting points

convex

If TRUE, returns a convex polygon (with n vertices) - not yet implemented

animate

If TRUE, returns points and edges data for animation purposes

Examples

1

marcusvolz/steiner documentation built on April 25, 2018, 12:14 p.m.