LineType
public protocol LineType : GeometricType
Protocol for objects that form geometric lines with at least two distinct points the line is guaranteed to cross.
-
The vector type associated with this
LineType
.Declaration
Swift
associatedtype Vector : VectorType
-
Gets the first point that defines the line of this
LineType
.This point is always guaranteed to be colinear and part of the line limits.
Declaration
Swift
var a: Vector { get }
-
Gets the second point that defines the line of this
LineType
.This point is not guaranteed to be part of the line limits but it is guaranteed to be colinear.
Declaration
Swift
var b: Vector { get }
-
Gets the category for this
LineType
, specifying whether the end points of the line are open or closed.Declaration
Swift
var category: LineCategory { get }