DSLineSegment
The DSLineSegment class represents a line segment defined by two Points.
Definition
Assembly: DynamsoftCaptureVisionBundle.xcframework
- Objective-C
- Swift
@interface DSLineSegment : NSObjectclass LineSegment : NSObject
Attributes & Methods
| Attributes | Type | Description |
|---|---|---|
startPoint |
CGPoint | The starting point of the line segment. |
endPoint |
CGPoint | The ending point of the line segment. |
id |
int | The ID of the line segment. |
| Methods | Description |
|---|---|
initWithStartPoint |
The constructor. Creates an instance from start point, end point and line ID. |
startPoint
The starting point of the line segment.
- Objective-C
- Swift
@property (nonatomic, assign) CGPoint startPoint;var startPoint: CGPoint { get set }
endPoint
The ending point of the line segment.
- Objective-C
- Swift
@property (nonatomic, assign) CGPoint endPoint;var endPoint: CGPoint { get set }
id
The ID of the line segment.
- Objective-C
- Swift
@property (nonatomic, assign) NSInteger lineId;var lineId: Int { get set }
initWithStartPoint
The constructor. Creates an instance from start point, end point and line ID.
- Objective-C
- Swift
- (instancetype)initWithStartPoint:(CGPoint)startPoint endPoint:(CGPoint)endPoint lineId:(NSInteger)lineId;init(startPoint: CGPoint, endPoint: CGPoint, lineId: Int)