SmallBASIC GuideThe language | Programming Tips | Commands | System | Graphics & Sound | Miscellaneous | File system | Mathematics | 2D Algebra | Strings | Console | Glossary |
Function: SEGCOS (Ax,Ay,Bx,By,Cx,Cy,Dx,Dy)
Function: SEGSIN (Ax,Ay,Bx,By,Cx,Cy,Dx,Dy) Sinus or cosine of 2 line segments (A->B, C->D).
Function: PTDISTSEG (Bx,By,Cx,Cy,Ax,Ay) Distance of point A from line segment B-C
Function: PTDISTLN (Bx,By,Cx,Cy,Ax,Ay) Distance of point A from line B, C
Function: PTSIGN (Ax,Ay,Bx,By,Qx,Qy) The sign of point Q from line segment A->B
Function: SEGLEN (Ax,Ay,Bx,By) Length of line segment
Function: POLYAREA (poly) Returns the area of the polyline poly.
Command: POLYEXT poly(), BYREF xmin, BYREF ymin, BYREF xmax, BYREF ymax Returns the polyline's extents
Command: INTERSECT Ax, Ay, Bx, By, Cx, Cy, Dx, Dy, BYREF type, BYREF Rx, BYREF Ry Calculates the intersection of the two line segments A-B and C-D Returns: Rx,Ry = cross type = cross-type



2D & 3D graphics transformations