Sponsored links: Algebra eBooks
 

Help Index

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

The Maxima on-line user's manual

Algebra Calculator

Search:

Polygon Calculator

Polygon

-- Graphic object: polygon ([[<x1>,<y1>], [<x2>,<y2>],...]) -- Graphic object: polygon ([<x1>,<x2>,...], [<y1>,<y2>,...]) Draws polygons in 2D.

2D

load(draw);
draw2d(transparent = true,polygon([[1.500000, 1.000000],[1.458333, 1.000000],[1.442716, 1.118625]]),polygon([[1.500000, 1.000000],[1.442716, 1.118625],[1.396928, 1.229167]]),polygon([[1.500000, 1.000000],[1.396928, 1.229167],[1.324091, 1.324091]]),polygon([[1.500000, 1.000000],[1.324091, 1.324091],[1.229167, 1.396928]]),polygon([[1.500000, 1.000000],[1.229167, 1.396928],[1.118625, 1.442716]]),polygon([[1.500000, 1.000000],[1.118625, 1.442716],[1.000000, 1.458333]]),polygon([[1.500000, 1.000000],[1.000000, 1.458333],[0.881375, 1.442716]]),polygon([[1.500000, 1.000000],[0.881375, 1.442716],[0.770833, 1.396928]]),polygon([[1.500000, 1.000000],[0.770833, 1.396928],[0.675909, 1.324091]]),polygon([[1.500000, 1.000000],[0.675909, 1.324091],[0.603072, 1.229167]]),polygon([[1.500000, 1.000000],[0.603072, 1.229167],[0.557284, 1.118625]]),polygon([[1.500000, 1.000000],[0.557284, 1.118625],[0.541667, 1.000000]]),polygon([[1.500000, 1.000000],[0.541667, 1.000000],[0.557284, 0.881375]]),polygon([[1.500000, 1.000000],[0.557284, 0.881375],[0.603072, 0.770833]]),polygon([[1.500000, 1.000000],[0.603072, 0.770833],[0.675909, 0.675909]]),polygon([[1.500000, 1.000000],[0.675909, 0.675909],[0.770833, 0.603072]]),polygon([[1.500000, 1.000000],[0.770833, 0.603072],[0.881375, 0.557284]]),polygon([[1.500000, 1.000000],[0.881375, 0.557284],[1.000000, 0.541667]]),polygon([[1.500000, 1.000000],[1.000000, 0.541667],[1.118625, 0.557284]]),polygon([[1.500000, 1.000000],[1.118625, 0.557284],[1.229167, 0.603072]]),polygon([[1.500000, 1.000000],[1.229167, 0.603072],[1.324091, 0.675909]]),polygon([[1.500000, 1.000000],[1.324091, 0.675909],[1.396928, 0.770833]]),polygon([[1.500000, 1.000000],[1.396928, 0.770833],[1.442716, 0.881375]]),polygon([[1.500000, 1.000000],[1.442716, 0.881375],[1.458333, 1.000000]]));

polygon ([[<x1>,<y1>], [<x2>,<y2>],...]) or polygon ([<x1>,<x2>,...], [<y1>,<y2>,...]): plots on the plane a polygon with vertices [<x1>,<y1>], [<x2>,<y2>], etc..

This object is affected by the following graphic options: transparent, fill_color, border, line_width, key, line_type and color.

Example:

          (%i1) load(draw)$
          (%i2) draw2d(color      = "#e245f0",
                       line_width = 8,
                       polygon([[3,2],[7,2],[5,5]]),
                       border      = false,
                       fill_color  = yellow,
                       polygon([[5,2],[9,2],[7,5]]) )$

There are also some inexact matches for polygon. Try ?? polygon to see them.

(%o1)                                true
(%i2) 

Polygon Example

Related Examples