Learn R Programming

lawn (version 0.1.7)

lawn_bbox_polygon: Make a polygon from a bounding box

Description

Takes a bbox and returns an equivalent polygon data-Polygon

Usage

lawn_bbox_polygon(bbox)

Arguments

bbox
an Array of bounding box coordinates in the form: [xLow, yLow, xHigh, yHigh]

Value

a data-Polygon representation of the bounding box

See Also

Other measurements: lawn_along, lawn_area, lawn_bearing, lawn_center, lawn_centroid, lawn_destination, lawn_distance, lawn_envelope, lawn_extent, lawn_line_distance, lawn_midpoint, lawn_point_on_surface, lawn_size, lawn_square

Examples

Run this code
bbox <- c(0, 0, 10, 10)
lawn_bbox_polygon(bbox)

Run the code above in your browser using DataLab