BEEP-8 Helper Lib 1.0.0
Loading...
Searching...
No Matches
Poly Struct Reference

Represents a triangle in 2D space using three points. More...

#include <submath.h>

Public Member Functions

 Poly ()=default
 Default constructor.
 
 Poly (fx8 x0, fx8 y0, fx8 x1, fx8 y1, fx8 x2, fx8 y2)
 

Public Attributes

Vec pos0
 The first vertex of the triangle.
 
Vec pos1
 The second vertex of the triangle.
 
Vec pos2
 The third vertex of the triangle.
 

Detailed Description

Represents a triangle in 2D space using three points.

The Poly structure defines a triangle with three vertices, pos0, pos1, and pos2, each represented by a vec structure. This structure can be used to define and manipulate triangles in 2D graphics applications.

Note
The default constructor initializes the triangle without setting any vertex positions. It is expected that the positions of the vertices will be set manually after initialization.

The documentation for this struct was generated from the following file: