Learn R Programming

visor (version 0.1.1)

create_occluder: Create a polygon representing an occluder

Description

Create a polygon representing an occluder

Usage

create_occluder(center_x, center_y, length, width)

Value

object of class sfc_POLYGON

Arguments

center_x

Center x coordinate

center_y

Center y coordinate

length

Length of the occluder

width

Width of the occluder

Examples

Run this code
occluder <- create_occluder(0, 0, 10, 2)

Run the code above in your browser using DataLab