Point2D constructor

Point2D(
  1. double x,
  2. double y
)

Creates a new instance.

  • x Position along the X axis. The default value is 0.
  • y Position along the Y axis. The default value is 0.

Implementation

Point2D(this.x, this.y);