View Source Geometry.PointZ (Geometry v0.4.0)
A point struct, representing a 3D point.
Link to this section Summary
Functions
Creates an empty PointZ
.
Creates a PointZ
from the given coordinate
.
Creates a PointZ
from the given x
, y
, and z
.
Link to this section Types
@type t() :: %Geometry.PointZ{coordinate: Geometry.coordinate() | []}
Link to this section Functions
@spec new() :: t()
Creates an empty PointZ
.
examples
Examples
iex> PointZ.new()
%PointZ{coordinate: []}
@spec new(Geometry.coordinate()) :: t()
Creates a PointZ
from the given coordinate
.
examples
Examples
iex> PointZ.new([1.5, -2.1, 3])
%PointZ{coordinate: [1.5, -2.1, 3]}
Creates a PointZ
from the given x
, y
, and z
.
examples
Examples
iex> PointZ.new(-1.1, 2.2, 3)
%PointZ{coordinate: [-1.1, 2.2, 3]}