rct_xmin: Rectangle accessors and operators

View source: R/rct.R

rct_xminR Documentation

Rectangle accessors and operators

Description

Rectangle accessors and operators

Usage

rct_xmin(x)

rct_ymin(x)

rct_xmax(x)

rct_ymax(x)

rct_width(x)

rct_height(x)

rct_intersects(x, y)

rct_contains(x, y)

rct_intersection(x, y)

Arguments

x, y

rct() vectors

Value

  • rct_xmin(), rct_xmax(), rct_ymin(), and rct_ymax() return the components of the rct().

Examples

x <- rct(0, 0, 10, 10)
y <- rct(5, 5, 15, 15)

rct_xmin(x)
rct_ymin(x)
rct_xmax(x)
rct_ymax(x)
rct_height(x)
rct_width(x)
rct_intersects(x, y)
rct_intersection(x, y)
rct_contains(x, y)
rct_contains(x, rct(4, 4, 6, 6))


wk documentation built on Oct. 12, 2024, 1:07 a.m.