spat v0.3.0 Spat.Coord protocol

Link to this section Summary

Functions

Get dimensions of the coordinate

Get the value of a particular axis from the coordinate

Link to this section Types

Link to this section Functions

Link to this function dimension(coord)
dimension(t()) :: non_neg_integer()

Get dimensions of the coordinate.

Link to this function get(coord, axis)
get(t(), non_neg_integer()) :: number()

Get the value of a particular axis from the coordinate.

Axes should be mapped started from 0 to n (where n is Spat.Coord.dimension(coord) - 1), where the 0 axis will be equivalent to the x axis, and 1 will be y, etc.