Point
public struct Point : XMLRepresentable
A structure that contains a point in a two-dimensional coordinate system.
-
The x value of the point.
Declaration
Swift
public var x: Double
-
The y value of the point.
Declaration
Swift
public var y: Double
-
The point with location (0,0).
Declaration
Swift
public static let zero: Point
-
Converts the point to a Core Graphics (CGPoint) representation.
Declaration
Swift
public var cgPointValue: CGPoint { get }
-
Initializes a new point.
Declaration
Swift
public init(x: Double, y: Double)
Parameters
x
The x value of the point.
y
The y value of the point.