LineCategory
public struct LineCategory : RawRepresentable, Hashable
Represents the category for a LineType
, specifying whether the end points
of the line are open or closed.
-
Declaration
Swift
public var rawValue: Int
-
Returns whether the start of this line category is open, i.e. it extends towards infinity past
b -> a
.Declaration
Swift
public var isOpenStart: Bool { get }
-
Returns whether the end of this line category is open, i.e. it extends towards infinity past
a -> b
.Declaration
Swift
public var isOpenEnd: Bool { get }
-
Declaration
Swift
public init(rawValue: Int)
-
Category for a geometric line that define an infinite line.
Declaration
Swift
static let line: `Self`
-
Category for a geometric ray line which has a starting point and crosses a secondary point before projecting to infinity.
Declaration
Swift
static let ray: `Self`
-
Category for a line segment that define a closed interval with a start and end point.
Declaration
Swift
static let lineSegment: `Self`