API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

AEELINE

Brew Release
Brew MP 1.0.2
Description
This structure defines the line segment data type.
Members
  • sx : X coordinate of the starting point of the line segment
  • sy : Y coordinate of the starting point of the line segment
  • ex : X coordinate of the ending point of the line segment
  • ey : Y coordinate of the ending point of the line segment
Definition
  • typedef struct _line
    {
       int16 sx, sy;
       int16 ex, ey;
    } AEELine;
    
Comments
Mathematically, a line is infinitely long. So AEELine defines a line segment from (sx, sy) to (ex, ey), instead of a mathematical line. The line segment includes both end points.