Point

class Point

2-dimensional point.

  • x

    The x coordinate of the point.

    Declaration

    var x: Double { get }
  • y

    The y coordinate of the point.

    Declaration

    var y: Double { get }
  • The object’s description

    Declaration

    var description: String { get }
  • Subtracts point from self.

    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 of self.

  • Adds point to self.

    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 of self.