Previous Up Next

13.9.3  Rectangles in the plane: rectangle

See Section 14.8.3 for rectangles in space.

The rectangle creates rectangles.


Examples.


Given rectangle(A,B,k), Xcas computes D by affix(D) = affix(A) + kexp(iπ/2)(affix(B)−affix(A)). If k is complex, then rectangle draws a parallelogram.


Example.
Input:

rectangle(0,1,1+i)

Output:


Previous Up Next