copyByType method
Copies this
as another object according to the given type
.
Implementation
@override
Projected copyByType(Coords type) => coordType == type
? this
: Projected.create(
x: x,
y: y,
z: type.is3D ? z : null,
m: type.isMeasured ? m : null,
);