coords.Coords.directional_extremes#

Coords.directional_extremes(n, p=None)#

Returns extremal planes in the direction n.

Parameters: see directional_size().

Returns#

Coords (2,3)

A Coords holding the two points on the line (p,n) with minimal and maximal distance from the plane (p,n). These two points together with the normal n define two parallel planes such that all points of self are between or on the planes.

See also#

Notes#

This is like directional_size with the return_points option True, but only returns the extreme points.

Examples#

>>> X = Coords([[[0.,0.,0.],[3.,0.,0.],[0.,3.,0.]]])
>>> X.directional_extremes([1,0,0])
Coords([[0. , 1.5, 0. ],
        [3. , 1.5, 0. ]])