View Source Geometry.LineStringZM (Geometry v0.4.0)
A line-string struct, representing a 3D line with a measurement.
A none empty line-string requires at least two points.
Link to this section Summary
Link to this section Types
@type t() :: %Geometry.LineStringZM{points: Geometry.coordinates()}
Link to this section Functions
@spec new() :: t()
Creates an empty LineStringZM.
examples
Examples
iex> LineStringZM.new()
%LineStringZM{points: []}
@spec new([Geometry.PointZM.t()]) :: t()
Creates a LineStringZM from the given Geometry.PointZMs.
examples
Examples
iex> LineStringZM.new([PointZM.new(1, 2, 3, 4), PointZM.new(3, 4, 5, 6)])
%LineStringZM{points: [[1, 2, 3, 4], [3, 4, 5, 6]]}