S2ContainsPointQuery

Undocumented in source.

Constructors

this
this()

Default constructor; requires Init() to be called.

this
this(IndexT index, Options options)
Undocumented in source.
this
this(IndexT index, S2VertexModel vertex_model)
Undocumented in source.

Members

Aliases

EdgeVisitor
alias EdgeVisitor = bool delegate(in ShapeEdge)
Undocumented in source.
Options
alias Options = S2ContainsPointQueryOptions

Rather than calling this constructor, which requires specifying the IndexT template argument explicitly, the preferred idiom is to call MakeS2ContainsPointQuery() instead. For example:

ShapeVisitor
alias ShapeVisitor = bool delegate(S2Shape)
Undocumented in source.

Functions

contains
bool contains(S2Point p)

Returns true if any shape in the given index() contains the point "p" under the vertex model specified (OPEN, SEMI_OPEN, or CLOSED).

getContainingShapes
S2Shape[] getContainingShapes(S2Point p)

Convenience function that returns all the shapes that contain the given point "p".

index
inout(IndexT) index()
Undocumented in source. Be warned that the author may not have intended to support it.
initialize
void initialize(IndexT index, Options options)

Equivalent to the two-argument constructor above.

mutableIter
Iterator mutableIter()

//////////////////////// Low-Level Methods ////////////////////////////

options
const(Options) options()
Undocumented in source. Be warned that the author may not have intended to support it.
shapeContains
bool shapeContains(S2Shape shape, S2Point p)

Returns true if the given shape contains the point "p" under the vertex model specified (OPEN, SEMI_OPEN, or CLOSED).

shapeContains
bool shapeContains(Iterator it, S2ClippedShape clipped, S2Point p)
Undocumented in source. Be warned that the author may not have intended to support it.
visitContainingShapes
bool visitContainingShapes(S2Point p, ShapeVisitor visitor)
Undocumented in source. Be warned that the author may not have intended to support it.
visitIncidentEdges
bool visitIncidentEdges(S2Point p, EdgeVisitor visitor)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta