Point
class Point
2-dimensional point.
-
The x coordinate of the point.
Declaration
var x: Double { get } -
The y coordinate of the point.
Declaration
var y: Double { get } -
The object’s description
Declaration
var description: String { get } -
Subtracts
pointfromself.Declaration
func subtracting(point A: <<error type>>, point: Point) -> PointReturn Value
The point obtained from subtracting x and y coordinates of
pointfrom those ofself. -
Adds
pointtoself.Declaration
func adding(point A: <<error type>>, point: Point) -> PointReturn Value
The point obtained from adding x and y coordinates of
pointto those ofself.