Point


super: Object

Represents a point in a Cartesian coordinate system.

Properties

  • var x: Float x coordinate.

  • var y: Float y coordinate.

Initializers

  • func Point(x: Float, y: Float) Create a new Point object.

Methods

  • func copy(): Point Copy a Point object by value (duplicate).