跳转至

CFBDGraphic_Line

Module: Line Drawing

Represents a line segment defined by two endpoints. More...

#include <line.h>

Public Attributes

Name
CFBDGraphic_Point p_left
CFBDGraphic_Point p_right

Detailed Description

struct CFBDGraphic_Line;

Represents a line segment defined by two endpoints.

This structure defines a line in 2D space using two points. The line segment extends from the left endpoint to the right endpoint, and can be used for rendering, collision detection, and geometric calculations.

The naming convention "left" and "right" refers to the logical order of the endpoints rather than spatial positioning. The endpoints can be at any position, including when p_left is spatially to the right of p_right.

Public Attributes Documentation

variable p_left

CFBDGraphic_Point p_left;

The left endpoint of the line segment

variable p_right

CFBDGraphic_Point p_right;

The right endpoint of the line segment


Updated on 2026-02-03 at 13:21:55 +0000