This module describes shapes for drawing,
checking and other things related to the work of shapes.
Forms are of the following types:
* Unknown - Forms are of the following types:
* Point - Dot. The simplest of the simplest forms. Only origin parameters are valid.
* line - More complex form. Has the origin and the end of the coordinates of its two points.
By default, this is a line.
* 'rectangle' - Rectangle shape. By default, such a rectangle is considered to be solid.
* circle - Circle shape. By default, it is considered to be solid.
* triangle - Triangle shape. It is believed to be solid.
* multi - A shape that combines several shapes, which will eventually give a single shape.
Here you can, for example, create a non-solid polygon:
/*
Such a rectangle can also be created using the function
`Shape.RectangleLine(begin,end)`.
*/autorectangle_nonSolid = Shape.Multi([
Shape.Line(Vecf(0,0),Vecf(32,0)),
Shape.Line(Vecf(32,0),Vecf(32,32)),
Shape.Line(Vecf(0,0),Vecf(0,32)),
Shape.Line(Vecf(0,32),Vecf(32,32))
], Vecf(0,0));
This module describes shapes for drawing, checking and other things related to the work of shapes.
Forms are of the following types: * Unknown - Forms are of the following types: * Point - Dot. The simplest of the simplest forms. Only origin parameters are valid. * line - More complex form. Has the origin and the end of the coordinates of its two points. By default, this is a line. * 'rectangle' - Rectangle shape. By default, such a rectangle is considered to be solid. * circle - Circle shape. By default, it is considered to be solid. * triangle - Triangle shape. It is believed to be solid. * multi - A shape that combines several shapes, which will eventually give a single shape. Here you can, for example, create a non-solid polygon:
All such types are specified in enum ShapeType.