S2ClosestPointQueryBase.Result

Each "Result" object represents a closest point.

Constructors

this
this(Distance distance, PointData point_data)

Constructs a Result object for the given point.

Members

Functions

data
const(Data) data()

The client-specified data associated with this point.

distance
Distance distance()

The distance from the target to this point.

isEmpty
bool isEmpty()

Returns true if this Result object does not refer to any data point. (The only case where an empty Result is returned is when the FindClosestPoint() method does not find any points that meet the specified criteria.)

opCmp
int opCmp(Result y)

Compares two Result objects first by distance, then by point_data().

opEquals
bool opEquals(Result y)

Returns true if two Result objects are identical.

point
const(S2Point) point()

The point itself.

Meta