Resource Base
Table of contents

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;

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

version 3.0.0

  • Latest version (2.2.20)
  • Version 2.x
    • Version 2.2.10
    • Version 2.2.0
    • Version 2.0.30
    • Version 2.0.20
    • Version 2.0.10
    • Version 2.0.0
Change +
© 2003–2024 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support