ray_shade2: Vectorized Base R Versions of 'rayshader::ray_shade'

Description Usage Arguments Details Value

View source: R/fast-shade.R

Description

This is derived from the Wolf Vollprecht's adaptation of the original pure R implementation from Tyler Morgan Wall's blog post.

Usage

1
2
3
4
5
ray_shade2(heightmap, anglebreaks = seq(40, 50, 1), sunangle = 315,
  maxsearch = 100)

ray_shade3(heightmap, anglebreaks = seq(40, 50, 1), sunangle = 315,
  maxsearch = 100)

Arguments

heightmap

A two-dimensional matrix, where each entry in the matrix is the elevation at that point. All points are assumed to be evenly spaced.

anglebreaks

Default 'seq(40,50,1)'. The azimuth angle(s), in degrees, as measured from the horizon from which the light originates.

sunangle

Default '315' (NW). The angle, in degrees, around the matrix from which the light originates. Zero degrees is North, increasing clockwise.

maxsearch

Default '100'. The maximum distance that the system should propogate rays to check. For longer

Details

Value

numeric matrix of shadow intensities between with values in &91;0,1&93;.


brodieG/shadow documentation built on Aug. 12, 2019, 1:50 p.m.