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 p_{i}={x_{i},y_{i}} and
p_{i+1}={x_{i=1},y_{i+1}}.

MidPoint[{p1,p2, p2, ...}, i] -
midpoints of i^{th} edge p_{i}={x_{i},y_{i}} and
p_{i+1}={x_{i=1},y_{i+1}}.

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

MidPoint[tissue, i, j] - midpoint of
j_{th} 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