Skip to contents

Returns a shape centered on the origin. The two functions are strictly equivalent.

Usage

coo_center(coo)

coo_centre(coo)

Arguments

coo

matrix of (x; y) coordinates or any Coo object.

Value

a matrix of (x; y) coordinates, or a Coo object.

Examples

coo_plot(bot[1])

# same as
coo_plot(coo_centre(bot[1]))
# this
coo_plot(coo_center(bot[1]))


# on Coo objects
b <- slice(bot, 1:5) # speed sake
stack(slice(b, 1:5))

stack(coo_center(b))