Description Usage Arguments Details Value See Also Examples
Determine the third coordinate of a triangle, given the other two coordinates and the distances to the third.
1 | coordtri(cleft, cright, lleft, lright)
|
cleft |
A numeric vector of length 2, the x and y coordinates of the lower left point of the triangle (see details). |
cright |
A numeric vector of length 2, the x and y coordinates of the lower right point of the triangle (see details). |
lleft |
A numeric scalar, the length of the left side of the triangle,
from |
lright |
A numeric scalar, the length of the right side of the triangle,
from |
The directions "left" and "right" refer to the triangle not necessarily in its current state, but rather after it has been rotated such that the bottom of the triangle is level (e.g., on the y=0 line), and the third coordinate that the function returns is "above" the bottom (e.g., y>0).
A warning message is given if a triangle can't be built from the inputs
provided, and the returned value is c(NA, NA)
.
A numeric vector of length 2, the x and y coordinates of the top point of the triangle.
coordplot
, coordturn
,
coordmove
, coordflip
.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.