Skip to content

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

System.Double

BBox.Height Property

Height in degrees (MaxY - MinY).

public double Height { get; }

Property Value

System.Double

BBox.MaxX Property

Eastern edge (maximum longitude).

public double MaxX { get; }

Property Value

System.Double

BBox.MaxY Property

Northern edge (maximum latitude).

public double MaxY { get; }

Property Value

System.Double

BBox.MinX Property

Western edge (minimum longitude).

public double MinX { get; }

Property Value

System.Double

BBox.MinY Property

Southern edge (minimum latitude).

public double MinY { get; }

Property Value

System.Double

BBox.Width Property

Width in degrees (MaxX - MinX).

public double Width { get; }

Property Value

System.Double

Methods

BBox.Contains(double, double) Method

Whether the point x, y lies within the box (inclusive).

public bool Contains(double x, double y);

Parameters

x System.Double

Longitude.

y System.Double

Latitude.

Returns

System.Boolean
true if the point is inside or on the boundary.