Point2D
public struct Point2D : Hashable
Represents a point in 2D space. When this point is used to indicate coordinates on a view, then (0,0) will mark the top-left corner of the view.
-
Position along the X axis. The default value is 0.
Declaration
Swift
public var x: Double -
Position along the Y axis. The default value is 0.
Declaration
Swift
public var y: Double -
Creates a new instance.
Declaration
Swift
public init(x: Double = 0.0, y: Double = 0.0)