LINE
This structure defines a 2D line segment represented by a start point and an end point. Each point is defined using the POINT_2D structure. It is typically used for planar geometry calculations such as boundary definitions, region drawing, or graphical path representation.
BYTE# |
Field Name |
Data Type |
Value |
Remarks |
|---|---|---|---|---|
0 |
|
[mm] |
Start point of the line segment |
|
8 |
|
[mm] |
End point of the line segment |
Total size: 16 bytes
Defined in: DRFS.h
typedef struct _LINE
{
POINT_2D _tFromPoint; /* Start point (X1, Y1) */
POINT_2D _tToPoint; /* End point (X2, Y2) */
} LINE, *LPLINE;
typedef LINE LINE_2D;
Both LINE and LINE_2D refer to the same structure.