Partager via


Geometry.Intersects(Geometry) Méthode

Définition

Vérifie si la géométrie actuelle1 croise geometry2.

public bool Intersects (Azure.Cosmos.Spatial.Geometry geometry2);
member this.Intersects : Azure.Cosmos.Spatial.Geometry -> bool
Public Function Intersects (geometry2 As Geometry) As Boolean

Paramètres

geometry2
Geometry

Deuxième Geometry.

Retours

Retourne true si geometry1 croise geometry2, sinon retourne false.

Exemples

var distanceQuery = documents.Where(document => document.Location.Intersects(new Point(20.1, 20)));

S’applique à