coordinateDimension property

int coordinateDimension
inherited

The number of coordinate values (2, 3 or 4).

If value is 2, a position has 2D coordinates without m coordinate.

If value is 3, a position has 2D coordinates with m coordinate or 3D coordinates without m coordinate.

If value is 4, a position has 3D coordinates with m coordinate.

Must be >= spatialDimension.

Implementation

int get coordinateDimension {
  if (is3D) {
    return isMeasured ? 4 : 3;
  } else {
    return isMeasured ? 3 : 2;
  }
}