| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
7.3 math
This package extends Asymptote's mathematical capabilities with
intersection algorithms and matrix arithmetic:
-
void drawline(picture pic=currentpicture, pair P, pair Q, pen p=currentpen); draw the visible portion of the (infinite) line going through
PandQ, without altering the size of picturepic, using penp.-
real intersect(triple P, triple Q, triple n, triple Z); returns the intersection time of the extension of the line segment
PQwith the plane perpendicular tonand passing throughZ.-
triple intersectionpoint(triple n0, triple P0, triple n1, triple P1); Return any point on the intersection of the two planes with normals
n0andn1passing through pointsP0andP1, respectively. If the planes are parallel, return(infinity,infinity,infinity).-
pair[] quarticroots(real a, real b, real c, real d, real e); returns the four complex roots of the quartic equation ax^4+bx^3+cx^2+dx+e=0.
