Struct BBox
- Namespace
- TZFinder
- Assembly
- TZFinder.dll
Represents a rectangular bounding box defined by southwest and northeast positions.
public readonly record struct BBox : IEquatable<BBox>
- Implements
- Inherited Members
Constructors
BBox(Position, Position)
Represents a rectangular bounding box defined by southwest and northeast positions.
public BBox(Position SouthWest, Position NorthEast)
Parameters
SouthWest
PositionThe southwest corner of the bounding box.
NorthEast
PositionThe northeast corner of the bounding box.
Properties
NorthEast
The northeast corner of the bounding box.
public Position NorthEast { get; init; }
Property Value
SouthWest
The southwest corner of the bounding box.
public Position SouthWest { get; init; }
Property Value
World
Gets a bounding box that represents the entire world.
public static BBox World { get; }
Property Value
Methods
Split(ref int)
Splits the bounding box into two halves along the current axis determined by the level.
public (BBox hi, BBox lo) Split(ref int level)
Parameters
level
intThe current level of splitting. Even levels split along longitude, odd levels split along latitude. The value is incremented after each call.