Point


super: Object

Represents a point in a Cartesian coordinate system.

Properties

  • var x: Float x coordinate.

  • var y: Float y coordinate.

  • var objectName: String The name of the object.

Constructors

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

Methods

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