MidPoint Cellzilla2D Home

Description

Finds the midpoint of a line segment or the midpoints of a collection of line segments.

Needs["Cellzilla2D`"];

Return Value

MidPoint[p1,p2] - midpoint of p1={x1,y1} and p2={x2,y2}.

MidPoint[{p1,p2}] - midpoint of p1={x1,y1} and p2={x2,y2}.

MidPoint[{p1,p2, p2, ...}] - list of midpoints of each edge pi={xi,yi} and pi+1={xi=1,yi+1}.

MidPoint[{p1,p2, p2, ...}, i] - midpoints of ith edge pi={xi,yi} and pi+1={xi=1,yi+1}.

MidPoint[tissue, i] - list of midpoints of each edge in cell i

MidPoint[tissue, i, j] - midpoint of jth edge in cell i. Edge numbers start from 1 in each cell (they are not the same as the tissue edge numbers).

Options

Example

[ Download Example as Zipped Mathematica Notebook ]

Implementation Notes

See Also



[2012 Nov 9]