DSCorner
The DSCorner
class represents a corner, typically where two line segments meet.
Definition
Assembly: DynamsoftCore.xcframework
- Objective-C
- Swift
@interface DSCorner: NSObject
class Corner: NSObject
Attributes
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. |
type
The type of the corner, represented by the enumeration DSCornerType
.
- Objective-C
- Swift
@property (nonatomic, assign) DSCornerType type
var type: DSCornerType { get set }
intersection
The coordinate of the intersection point of the corner.
- Objective-C
- Swift
@property (nonatomic, assign) CGPoint intersection
var intersection: CGPoint { get set }
line1
The first line segment forming the corner.
- Objective-C
- Swift
@property (nonatomic, strong, nullable) DSLineSegment *line1;
var line1: DSLineSegment? { get set }
line2
The second line segment forming the corner.
- Objective-C
- Swift
@property (nonatomic, strong, nullable) DSLineSegment *line2;
var line2: DSLineSegment? { get set }