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 } -
rectExtension methodDeclaration
Swift
public var rect: CGRect { get } -
squareRectExtension methodDeclaration
Swift
public var squareRect: CGRect { get } -
boundingRectExtension methodDeclaration
Swift
public var boundingRect: CGRect { get }
View on GitHub
ShapeWithTwoPoints Protocol Reference