Table of Contents

Class BoundingBox

Namespace
Geotab.Checkmate.ObjectModel.Geographical
Assembly
Geotab.Checkmate.ObjectModel.dll

A geographic area defined by the top-left and bottom-right coordinates.

public class BoundingBox
Inheritance
BoundingBox
Inherited Members

Constructors

BoundingBox()

Initializes a new instance of the BoundingBox class that's empty.

public BoundingBox()

BoundingBox(double, double, double, double)

Initializes a new instance of the BoundingBox class.

public BoundingBox(double left, double bottom, double right, double top)

Parameters

left double

Left Longitude.

bottom double

Bottom Latitude.

right double

Right Longitude.

top double

Top Latitude.

Properties

Bottom

Gets or sets the bottom latitude. Minimum value [-90]. Maximum value [90]. Default [0].

public double? Bottom { get; set; }

Property Value

double?

double

Left

Gets or sets the left longitude. Minimum value [-180]. Maximum value [180]. Default [0].

public double? Left { get; set; }

Property Value

double?

double

Right

Gets or sets the right longitude. Minimum value [-180]. Maximum value [180]. Default [0].

public double? Right { get; set; }

Property Value

double?

double

Top

Gets or sets the top latitude. Minimum value [-90]. Maximum value [90]. Default [0].

public double? Top { get; set; }

Property Value

double?

double

Methods

IsEmpty()

Gets a value indicating whether this bounding box is empty.

public bool IsEmpty()

Returns

bool

true if this instance is empty; otherwise, false.

IsValid()

Determines whether the bounding box values are valid or not.

public bool IsValid()

Returns

bool

true if this instance is valid; otherwise, false

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.