ShapeWithTwoPoints
public protocol ShapeWithTwoPoints
Special case of Shape
where the shape is defined by exactly two points.
This case is used to share code between the line, ellipse, and rectangle shapes
and tools.
-
Declaration
Swift
var a: CGPoint { get set }
-
Declaration
Swift
var b: CGPoint { get set }
-
Declaration
Swift
var strokeWidth: CGFloat { get set }
-
rect
Extension methodDeclaration
Swift
public var rect: CGRect { get }
-
squareRect
Extension methodDeclaration
Swift
public var squareRect: CGRect { get }
-
boundingRect
Extension methodDeclaration
Swift
public var boundingRect: CGRect { get }