select static method
Selects a Coords enum based on is3D
and isMeasured
.
Implementation
static Coords select({
required bool is3D,
required bool isMeasured,
}) {
if (is3D) {
return isMeasured ? Coords.xyzm : Coords.xyz;
} else {
return isMeasured ? Coords.xym : Coords.xy;
}
}