Skip to content

@technobuddha > library > Geometry > Line Segment

Type Alias: LineSegment

ts
type LineSegment = {
  x0: number;
  x1: number;
  y0: number;
  y1: number;
};

Defined in: @types/geometry.ts:44

Represents a line segment in 2D space, defined by its start and end points.

Properties

PropertyTypeDescriptionDefined in
x0numberThe x-coordinate of the start point.src/@types/geometry.ts:46
x1numberThe x-coordinate of the end point.src/@types/geometry.ts:50
y0numberThe y-coordinate of the start point.src/@types/geometry.ts:48
y1numberThe y-coordinate of the end point.src/@types/geometry.ts:52