Geometry.PointZM (Geometry v1.1.0)
View SourceA point struct, representing a 3D point with a measurement.
Summary
Functions
Creates an empty PointZM
.
Creates a PointZM
from the given coordinate
.
Creates a PointZM
from the given x
, y
, z
, and m
.
Types
@type t() :: %Geometry.PointZM{ coordinates: Geometry.coordinates() | [], srid: Geometry.srid() }
Functions
@spec new() :: t()
Creates an empty PointZM
.
Examples
iex> PointZM.new()
%PointZM{coordinates: []}
@spec new(Geometry.coordinates(), Geometry.srid()) :: t()
Creates a PointZM
from the given coordinate
.
Examples
iex> PointZM.new([1.5, -2.1, 3, 4])
%PointZM{coordinates: [1.5, -2.1, 3, 4]}
Creates a PointZM
from the given x
, y
, z
, and m
.
Examples
iex> PointZM.new(-1.1, 2.2, 3, 4)
%PointZM{coordinates: [-1.1, 2.2, 3, 4], srid: 0}