Segment
public struct Segment
Model of line segment.
-
Undocumented
Declaration
Swift
public static func horizontal(at y: Double) -> Segment
-
Undocumented
Declaration
Swift
public static func vertical(at x: Double) -> Segment
-
Declaration
Swift
public func y(x: Double) -> Double?
Return Value
Vertical position for the given horizontal position, if it exists. Otherwise,
nil
. -
Declaration
Swift
public func x(y: Double) -> Double?
Return Value
Horizontal position for the given vertical position, if it exists. Otherwise,
nil
.