Point

Represents a 2D (x,y) point.

Properties

Property Type Description
x number X coordinate
y number Y coordinate

Constructors

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

new ( number x, number y )
Creates a new point with the given x and y values.