Returns whether this geometry contains the other.
Returns whether this geometry contains the other.
Containment includes the border, so points "on the edge" count as contained.
Distance between this geometry and the given point.
Distance between this geometry and the given point.
The distance is measured in terms of the closest point in the geometry. For points this is obvious (there is only one point to use). For boxes, this means that points contained within the box (or on the perimeter) have a distance of zero.
Distance between this geometry and the given point, squared.
Distance between this geometry and the given point, squared.
See distance() for how to interpret the distance metric. This method is a bit faster than distance(), and is exposed for cases where we want to compare two distances (without caring about the actual distance value).
Construct a Box that contains this geometry and the other.
Construct a Box that contains this geometry and the other.
This will be the smallest possible box. The result of this method is guaranteed to contain() both geometries.
Return the given geometry's area outside this geometry.
Return the given geometry's area outside this geometry.
This is equivalent to the area that would be added by expand().
Returns whether this geometry intersects with the other.
Returns whether this geometry intersects with the other.
Intersection includes the border, so points "on the edge" count as intersecting.
Return whether all the bounds of the geometry are finite.
Return whether all the bounds of the geometry are finite.
"Finite" means all values except NaN and infinities.
Get the lower-left (southwest) bound of the geometry.
Get the lower-left (southwest) bound of the geometry.
Convert this Geom to a Box.
Get the upper-right (northeast) bound of the geometry.
Get the upper-right (northeast) bound of the geometry.
Returns whether this geometry wraps the other.
Returns whether this geometry wraps the other.
This is the same thing as containment, but it excludes the border. Points can never wrap anything, and boxes can only wrap geometries with less area than they have.