boxcoords.from.bbox: Compute the coordinates of the 8 corners of a 3D box.

View source: R/vis_volume.R

boxcoords.from.bboxR Documentation

Compute the coordinates of the 8 corners of a 3D box.

Description

Given the extreme values (min and max) along the 3 axes, compute the coordinates of the 8 corners of a 3D box.

Usage

boxcoords.from.bbox(axes_min, axes_max)

Arguments

axes_min

numerical vector of length 3, the min values of the 3 axes

axes_max

numerical vector of length 3, the max values of the 3 axes

Value

numerical matrix with 3 columns and 8 rows, the edge coordinates


dfsp-spirit/fsbrain documentation built on Nov. 28, 2024, 10:29 a.m.