Microscopy Image Browser 2.91
MIB
Loading...
Searching...
No Matches
clipLine3d.m File Reference

CLIPLINE3D Clip a line with a box and return an edge. More...

Functions

function edge = clipLine3d (line, box)
 CLIPLINE3D Clip a line with a box and return an edge.
 

Detailed Description

CLIPLINE3D Clip a line with a box and return an edge.

Function Documentation

◆ clipLine3d()

function edge = clipLine3d ( line,
box )

CLIPLINE3D Clip a line with a box and return an edge.

EDGE = clipLine3d(LINE, BOX); Clips the line LINE with the bounds given in BOX, and returns the corresponding edge.

If the line lies totally outside of the box, returns a 1-by-6 row array containing only NaN's.

If LINE is a N-by-6 array, with one line by row, returns the clipped edge coresponding to each line in a N-by-6 array.

See also
lines3d, edges3d, createLine3d

References intersectLinePlane(), and linePosition3d().

Referenced by clipEdge3d().

Here is the call graph for this function:
Here is the caller graph for this function: