Point2d

Represents a single location in 2-dimensional space.

Contains SRID along with its x and y coordinates.

Constructors

this
this(Point2d other)

Create a deep copy of other point 2d.

this
this(Value value)

Create a point 2d from a Value.

this
this(mg_point_2d* ptr)

Create a Point2d using the given mg_point_2d.

this
this(mg_point_2d* ptr)

Create a Point2d from a copy of the given mg_point_2d.

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Functions

opAssign
Point2d opAssign(Point2d rhs)

Assigns a point 2d to another. The target of the assignment gets detached from whatever point 2d it was attached to, and attaches itself to the new point 2d.

opEquals
bool opEquals(Point2d other)

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

ptr
const(mg_point_2d*) ptr()
Undocumented in source. Be warned that the author may not have intended to support it.
srid
long srid()

Returns SRID of the 2D point.

toString
string toString()

Return a printable string representation of this time.

x
double x()

Returns the x coordinate of the 2D point.

y
double y()

Returns the y coordinate of the 2D point.

Meta