DSCorner
The DSCorner class represents a corner, typically where two line segments meet.
Definition
Assembly: DynamsoftCaptureVisionBundle.xcframework
- Objective-C
- Swift
@interface DSCorner: NSObjectclass Corner: NSObject
Attributes & Methods
| Attributes | Type | Description |
|---|---|---|
type |
DSCornerType | The type of the corner, represented by the enumeration DSCornerType. |
intersection |
CGPoint | The point of intersection of the two lines forming the corner. |
line1 |
DSLineSegment * | The first line segment forming the corner. |
line2 |
DSLineSegment * | The second line segment forming the corner. |
| Method | Description |
|---|---|
initWithCornerType |
The constructor. Creates an instance from corner type, intersection and lines. |
type
The type of the corner, represented by the enumeration DSCornerType.
- Objective-C
- Swift
@property (nonatomic, assign) DSCornerType typevar type: CornerType { get set }
intersection
The coordinate of the intersection point of the corner.
- Objective-C
- Swift
@property (nonatomic, assign) CGPoint intersectionvar intersection: CGPoint { get set }
line1
The first line segment forming the corner.
- Objective-C
- Swift
@property (nonatomic, strong) DSLineSegment *line1;var line1: LineSegment? { get set }
line2
The second line segment forming the corner.
- Objective-C
- Swift
@property (nonatomic, strong) DSLineSegment *line2;var line2: LineSegment? { get set }
initWithCornerType
The constructor. Creates an instance from corner type, intersection and lines.
- Objective-C
- Swift
- (instancetype)initWithCornerType:(DSCornerType)type intersection:(CGPoint)intersection line1:(DSLineSegment *)line1 line2:(DSLineSegment *)line2;init(type: CornerType, intersection: CGPoint, line1: LineSegment?, line2: LineSegment?)