Skip to content

Latest commit

 

History

History
54 lines (38 loc) · 1.07 KB

File metadata and controls

54 lines (38 loc) · 1.07 KB
layout title description keywords needAutoGenerateSidebar
default-layout
class CLineSegment - Dynamsoft Core Module C++ Edition API Reference
This page shows the C++ edition of the class CLineSegment in Dynamsoft Core Module.
line segment, c++
true

CLineSegment

The CLineSegment class represents a line segment in 2D space. It contains two CPoint objects, which represent the start point and end point of the line segment.

Definition

Namespace: dynamsoft::basic_structures

Assembly: DynamsoftCore

class CLineSegment 

Attributes Summary

Attribute Type
startPoint CPoint
endPoint CPoint

startPoint

The start point of the line segment.

CPoint startPoint

endPoint

The end point of the line segment.

CPoint endPoint

Here's an example of how to use the CLineSegment class:

CLineSegment line;
line.startPoint.coordinate[0] = 0;
line.startPoint.coordinate[1] = 0;
line.endPoint.coordinate[0] = 100;
line.endPoint.coordinate[1] = 100;