Skip to content

Point

Type

Point

Represents a 2D (x,y) point.

Properties

Property Type Description
x float X coordinate
y float Y coordinate

Constructors

Point.new()

Creates a new point with x and y both set to 0.


Point.new(x, y)

Creates a new point with the given x and y values.

Parameters

  • x (float): The X coordinate
  • y (float): The Y coordinate