Description Usage Arguments Details Value
This is derived from the Wolf Vollprecht's adaptation of the original pure R implementation from Tyler Morgan Wall's blog post.
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)
|
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 |
ray_shade2: vectorized version with bilinear height interpolation
ray_shade3: vectorized version with closest point height approx
numeric matrix of shadow intensities between with values in &91;0,1&93;.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.