copyByType method

  1. @override
Projected copyByType(
  1. Coords type
)
override

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,
      );