plane_point: Compute point on plane, given two other points on plane

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Takes the output of get_plane as the definition of a plane, and values for two coordinates. The missing third coordinate will be computed and returned. If a vector of points is provided for each coordinate the vectors must be the same length.

Usage

1
plane_point(plane, x, y, z)

Arguments

plane

A list containing normal and origin of plane. And any two of the following three:

x

Coordinate along Right-Left axis

y

Coordinate along Anterior-Posterior axis

z

Coordinate along Inferior-Superior axis

Value

The value for the coordinate not provided

Examples

1
2
3
4
5
## Not run: 
plane_point(plane, x=-10:10, z=1) # will return 21 values for y
plane_point(plane, x=-10:10, y=1:21) # will return 21 values for z

## End(Not run)

crcox/ShinyATLROI documentation built on May 14, 2019, 11:33 a.m.