LineIntersection
public struct LineIntersection<Vector> where Vector : VectorFloatingPoint
extension LineIntersection: Equatable where Vector: Equatable
extension LineIntersection: Hashable where Vector: Hashable
The result of a LineIntersectableType-line intersection test.
-
Declaration
Swift
public typealias Scalar = Vector.Scalar -
A flag that is set to
trueif the line the shape was tested against is fully contained within the shape.Declaration
Swift
public var isContained: Bool -
A list of intersections that where returned by a
LineIntersectableType.Declaration
Swift
public var intersections: [Intersection] -
Declaration
Swift
public init(isContained: Bool, intersections: [Intersection]) -
Represents an intersection in a
See moreLineIntersection.Declaration
Swift
public enum Intersectionextension LineIntersection.Intersection: Equatable where Vector: Equatableextension LineIntersection.Intersection: Hashable where Vector: Hashable