Point constructor - Point - dart:math library (original) (raw)

description

Point<T extends num> constructor

constPoint<T extends num>(

  1. T x,
  2. T y )

Creates a point with the provided x and y coordinates.

Legacy: New usages of Point are discouraged. To learn more, check out the Point class API docs.

Implementation

const Point(T x, T y) : this.x = x, this.y = y;