Last data update: 2014.03.03

R: Expand a bounding box
lawn_sizeR Documentation

Expand a bounding box

Description

Takes a bounding box and returns a new bounding box with a size expanded or contracted by a factor of X.

Usage

lawn_size(bbox, factor)

Arguments

bbox

a bounding box

factor

the ratio of the new bbox to the input bbox

Value

the resized bbox, numeric vector of length four

See Also

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

Examples

bbox <- c(0, 0, 10, 10)
lawn_size(bbox, factor = 1)
lawn_size(bbox, factor = 10)
lawn_size(bbox, factor = 50)
lawn_size(bbox, factor = 100)

Results