GPoint constructor

GPoint([
  1. double x = 0,
  2. double y = 0
])

Creates a new GPoint instance with the specified x and y coordinates.

If no coordinates are specified, the point defaults to (0, 0).

Implementation

GPoint([this.x = 0, this.y = 0]);