Point3d

Represents a single location in 3-dimensional space.

Contains SRID along with its x, y and z coordinates.

Constructors

this
this(Point3d other)

Create a shallow copy of other point 3d.

this
this(Value value)

Create a point 3d from a Value.

this
this(mg_point_3d* ptr)

Create a Point3d using the given mg_point_3d pointer.

Members

Functions

opEquals
auto opEquals(Point3d other)

Compares this point 3d with other. Return: true if same, false otherwise.

ptr
auto ptr()

Return pointer to internal mg_point_3d.

srid
auto srid()

Returns SRID of the 3D point.

toHash
size_t toHash()

Return the hash code for this point 3d.

toString
string toString()

Return a printable string representation of this time.

x
auto x()

Returns the x coordinate of the 3D point.

y
auto y()

Returns the y coordinate of the 3D point.

z
auto z()

Returns the z coordinate of the 3D point.

Meta