Table of Contents

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 Position

The southwest corner of the bounding box.

NorthEast Position

The northeast corner of the bounding box.

Properties

NorthEast

The northeast corner of the bounding box.

public Position NorthEast { get; init; }

Property Value

Position

SouthWest

The southwest corner of the bounding box.

public Position SouthWest { get; init; }

Property Value

Position

World

Gets a bounding box that represents the entire world.

public static BBox World { get; }

Property Value

BBox

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 int

The current level of splitting. Even levels split along longitude, odd levels split along latitude. The value is incremented after each call.

Returns

(BBox hi, BBox lo)

A tuple containing the two resulting bounding boxes: hi (higher half) and lo (lower half).