xym property

Position xym

A position with x, y and m coordinates as a view backed by this.

The double list represented by this must contain x, y, m values in this order (or lon, lat, m for geographic coordinates).

See Position.view for more information. See also position.

Throws FormatException if this does not contain exactly 3 values.

Examples:

// a measured 2D position (x: 10.0, y: 20.0, m: 40.0)
[10.0, 20.0, 40.0].xym;

Implementation

Position get xym => Position.view(_requireLen(this, 3), type: Coords.xym);