Module shape

Source
Expand description

Shape methods for drawing.

Methods for drawing and interacting with shapes such as points, lines, rectangles, etc.

Provided traits:

Provided PixState methods;

Modules§

ellipse
A shape type representing circles and ellipses used for drawing.
line
A shape type representing lines used for drawing.
point
A N-dimensional shape type representing geometric points used for drawing.
quad
A shape type representing quadrilaterals used for drawing.
rect
A shape type representing squares and rectangles used for drawing.
sphere
A shape type representing spheres used for drawing.
triangle
A shape type representing triangles used for drawing.

Macros§

circle
Constructs a circle Ellipse at position (x, y) with radius.
ellipse
Constructs an Ellipse at position (x, y) with width and height.
line_
Constructs a Line with two points.
point
Constructs a Point with N coordinates.
quad
Constructs a Quad with four points.
rect
Constructs a Rect at position (x, y) with width and height.
sphere
Constructs a Sphere at position (x, y, z) with radius.
square
Constructs a square Rect at position (x, y) with the same width and height.
tri
Constructs a Triangle with three points.

Structs§

Ellipse
An Ellipse positioned at (x, y), with width and height. A circle is an Ellipse where width and height are equal.
Line
A Line with start and end Points.
Point
A Point in N-dimensional space.
Quad
A Quad or quadrilateral, a four-sided polygon.
Rect
A Rectangle positioned at (x, y) with width and height. A square is a Rectangle where width and height are equal.
Sphere
A Sphere positioned at (x, y, z) with radius.
Tri
A Triangle with three Points.

Traits§

Contains
Trait for shape containing operations.
Intersects
Trait for shape intersection operations.