endwall_angles.Rd
For a set of junction points that describe a simplified cell, this function extracts the left-most wall and the right-most wall and calculates their slope and bearing (in radians).
endwall_angles(junction_points)
This should be a matrix of the junction points defining the polygon. The first and last points are the same (i.e. the line formed by the points is closed).
A list with the following components:
The slope of the leftmost endwall. Useful for plotting.
The slope of the rightmost endwall.
The angle of the leftmost endwall. Useful for analysis.
The angle of the rightmost endwall.
The points defining the leftmost endwall.
The points defining the rightmost endwall.
The endwalls are defined as the cell walls that define the length of
the cell along the leaf axis (i.e. stomatal north). Note that this trait is only
truly applicable to species that have broadly rectangular or polygonal cells
AND where the leaf axis is known (or can be identified from the image, i.e.
stomatal north). The angle
outputs have been transformed to be within
-90 and 90, so that the distribution is centred on 0.