isovist2pts {alcyon}R Documentation

Create isovists using two points

Description

Create one or more isovists at particular points, given another point for direction and an angle for field of view

Usage

isovist2pts(boundaryMap, x, y, toX, toY, viewAngle, verbose = FALSE)

Arguments

boundaryMap

A ShapeMap with lines designating the isovist boundaries

x

X coordinate of the origin points

y

Y coordinate of the origin points

toX

X coordinate of the target points

toY

Y coordinate of the target points

viewAngle

The angle signifying the isovist's field of view

verbose

Optional. Show more information of the process.

Value

A ShapeMap with the isovist polygons

Examples

mifFile <- system.file(
    "extdata", "testdata", "simple",
    "simple_interior.mif",
    package = "alcyon"
  )
  sfMap <- st_read(mifFile,
    geometry_column = 1L, quiet = TRUE
  )
  shapeMap <- as(sfMap[, vector()], "ShapeMap")
isovist2pts(
  shapeMap,
  x = c(3.01, 1.3),
  y = c(6.70, 5.2),
  toX = c(3.40, 1.1),
  toY = c(6.50, 5.6),
  viewAngle = 3.14,
  FALSE
)

[Package alcyon version 0.4.0 Index]