powered by
Uses x-y coordinates of points to determine the indecies and lengths of rays penetrating the model.
get2Drayblox(x1, y1, x2, y2, xo, yo, NODES = FALSE, PLOT = FALSE)
x coordinate of starting block
y coordinate of starting block
x coordinate of ending block
y coordinate of ending block
x block divisions
y block divisions
logical, whether xo, yo ae nodes or edges
logical, TRUE=plot ray
x index
y index
layer index
length in each block
midpoints of sections
nodes of a 2D vector representation of layer
x-divisions
y-divisions
get3Drayblox
# NOT RUN { xo = seq(from=0.5, by=1, length=100) yo = seq(from=0.5, by=1, length=100) IYZ = get2Drayblox(10, 4, 64, 50, xo, yo , NODES=FALSE, PLOT=FALSE) # }
Run the code above in your browser using DataLab