BBox
BBox Struct¶
Axis-aligned bounding box in lon/lat degrees.
public readonly struct BBox
Properties¶
BBox.Area Property¶
Area in square degrees (Width * Height).
public double Area { get; }
Property Value¶
BBox.Height Property¶
Height in degrees (MaxY - MinY).
public double Height { get; }
Property Value¶
BBox.MaxX Property¶
Eastern edge (maximum longitude).
public double MaxX { get; }
Property Value¶
BBox.MaxY Property¶
Northern edge (maximum latitude).
public double MaxY { get; }
Property Value¶
BBox.MinX Property¶
Western edge (minimum longitude).
public double MinX { get; }
Property Value¶
BBox.MinY Property¶
Southern edge (minimum latitude).
public double MinY { get; }
Property Value¶
BBox.Width Property¶
Width in degrees (MaxX - MinX).
public double Width { get; }
Property Value¶
Methods¶
BBox.Contains(double, double) Method¶
Whether the point x, y lies within the box (inclusive).
public bool Contains(double x, double y);
Parameters¶
Longitude.
Latitude.
Returns¶
System.Boolean
true if the point is inside or on the boundary.