View Source Geometry.PointZM (Geometry v0.4.0)

A point struct, representing a 3D point with a measurement.

Link to this section Summary

Functions

Creates an empty PointZM.

Creates a PointZM from the given coordinate.

Creates a PointZM from the given x, y, z, and m.

Link to this section Types

@type t() :: %Geometry.PointZM{coordinate: Geometry.coordinate() | []}

Link to this section Functions

@spec new() :: t()

Creates an empty PointZM.

examples

Examples

iex> PointZM.new()
%PointZM{coordinate: []}
@spec new(Geometry.coordinate()) :: t()

Creates a PointZM from the given coordinate.

examples

Examples

iex> PointZM.new([1.5, -2.1, 3, 4])
%PointZM{coordinate: [1.5, -2.1, 3, 4]}
@spec new(number(), number(), number(), number()) :: t()

Creates a PointZM from the given x, y, z, and m.

examples

Examples

iex> PointZM.new(-1.1, 2.2, 3, 4)
%PointZM{coordinate: [-1.1, 2.2, 3, 4]}