Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
h1. General Program Information

...



h2. Basics - Pline

...



*pline* - a function that renders a 2 dimensional triangle by connecting points and lines.

...


pline(p1,p2,p3) :=

...


* concat("_pline",sp,point(p1{^}<0>{^}),sp,point(p2{^}<0>{^}),sp,point(p3{^}<0>{^}),sp,point(p1{^}<0>{^}),sp)

*Example*

p1=
* x = 0
* y = 0

p2 =
* x = -0.5
* y = 0

p3 =
* x = 0
* y = 0.86603

pline(p1,p2,p3) = _pline 0,0 -0.5,0 0,0.86603 0,0

{float:left|border=2px solid black}
!pline1.bmp!
Top View
{float}