math
This package extends Asymptote
's mathematical capabilities with
matrix arithmetic and intersection algorithms:
void drawline(picture pic=currentpicture, pair P, pair Q, pen p=currentpen);
P
and Q
, without altering the size of picture pic
,
using pen p
.
real intersect(triple P, triple Q, triple n, triple Z);
PQ
with the plane perpendicular to n
and passing through Z
.
triple intersectionpoint(triple n0, triple P0, triple n1, triple P1);
n0
and n1
passing through points P0
and P1
,
respectively. If the planes are parallel, return
(infinity,infinity,infinity)
.
pair[] quarticroots(real a, real b, real c, real d, real e);