Projected constructor
A projected position with x, y, and optional z and m coordinates.
Examples:
// a 2D position (x: 10.0, y: 20.0)
Projected(x: 10.0, y: 20.0);
// a 3D position (x: 10.0, y: 20.0, z: 30.0)
Projected(x: 10.0, y: 20.0, z: 30.0);
// a measured 2D position (x: 10.0, y: 20.0, m: 40.0)
Projected(x: 10.0, y: 20.0, m: 40.0);
// a measured 3D position (x: 10.0, y: 20.0, z: 30.0, m: 40.0)
Projected(x: 10.0, y: 20.0, z: 30.0, m: 40.0);
This default constructor is equivalent to Projected.create.
Implementation
const Projected({required double x, required double y, double? z, double? m})
: _x = x,
_y = y,
_z = z,
_m = m;