Triangle
public struct Triangle : ConvexPolygonProtocol
extension Triangle: Equatable
Model of a triangle.
-
Undocumented
Declaration
Swift
public var crossProduct: Double { get }
-
Vertices contained herein.
Declaration
Swift
public let vertices: VertexCollection
-
Create a
Triangle
with the given vertices.Warning
Will crash if given more or less than three vertices!Declaration
Swift
public init<S>(vertices: S) where S : Sequence, S.Element == Point
-
Declaration
Swift
public func contains(_ point: Point) -> Bool
Return Value
true
ifTriangle
contains the givenpoint
in its area.