Class RectShape
Represents a shape that defines a rectangle in two-dimensional space.
Inherited Members
Namespace: Genesis.Graphics.Shapes
Assembly: Genesis.dll
Syntax
public class RectShape : Shape
Constructors
RectShape()
Declaration
public RectShape()
Methods
GetShape()
Gets the vertices defining the rectangle shape.
Declaration
public override float[] GetShape()
Returns
Type | Description |
---|---|
float[] | An array of floating-point values representing the vertices and colors of the rectangle. |
Overrides
Remarks
The vertices are defined in the following order:
- Vertex positions (x, y, z)
- Colors (r, g, b)