Point constructor

Point(
  1. double x,
  2. double y, [
  3. double z = 0
])

Factory constructor with parameters for each dimension

Implementation

factory Point(double x, double y, [double z = 0]) {
  return Point._(x, y, z);
}