PositionImpl

Indicates a position with absolutes and/or relatives coordinates.

Members

Aliases

T
alias T = V.Type
Undocumented in source.

Functions

toCoordsString
string toCoordsString(string glue)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

from
V from [@property setter]

Creates a vector from an initial position (used for relative values).

Static functions

fromString
typeof(this) fromString(string str)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

Point
struct Point
Undocumented in source.

Examples

auto pos = Position(Position.Point.fromString("~"), Position.Point.fromString("1"), Position.Point.fromString("~10"));
auto res = pos.from(BlockPosition(1, 10, 100));
assert(res == BlockPosition(1, 1, 110));

Meta