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
point
fromself
.Declaration
func subtracting(point A: <<error type>>, point: Point) -> Point
Return Value
The point obtained from subtracting x and y coordinates of
point
from those ofself
. -
Adds
point
toself
.Declaration
func adding(point A: <<error type>>, point: Point) -> Point
Return Value
The point obtained from adding x and y coordinates of
point
to those ofself
.