View source: R/transformations.r
rotate.scale.coords | R Documentation |
Given some coordinates on [0,1)x[0,1), shift and scale them to the bounding box, and then rotate them given the bounding box rotation defined by the Master Sample.
rotate.scale.coords(coords, bb, back = TRUE)
coords |
Output from RSHalton() to be converted to the spatial surface of interest. |
bb |
Special shape file defining the bounding box with attributes for centroid and rotation. |
back |
Boolean for whether or not the rotation is back to the original rotated bounding box. |
sf spatial points with projection defined in bb.
## Not run: pts <- RSHalton(n = 10) bb <- getBB() pts.shp <- rotate.scale.coords(coords = pts, bb) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.