Show / Hide Table of Contents

Struct Box

Represents a box.

Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public struct Box

Constructors

Box(Coordinate, Coordinate)

Creates a new box.

Declaration
public Box(Coordinate coordinate1, Coordinate coordinate2)
Parameters
Coordinate coordinate1

Coordinate coordinate2

Box(Single, Single, Single, Single)

Creates a new box.

Declaration
public Box(float lat1, float lon1, float lat2, float lon2)
Parameters
System.Single lat1

System.Single lon1

System.Single lat2

System.Single lon2

Properties

Center

Gets the exact center of this box.

Declaration
public Coordinate Center { get; }
Property Value
Coordinate

MaxLat

Gets the maximum latitude.

Declaration
public float MaxLat { get; }
Property Value
System.Single

MaxLon

Gets the maximum longitude.

Declaration
public float MaxLon { get; }
Property Value
System.Single

MinLat

Gets the minimum latitude.

Declaration
public float MinLat { get; }
Property Value
System.Single

MinLon

Gets the minimum longitude.

Declaration
public float MinLon { get; }
Property Value
System.Single

Methods

ExpandWith(Single, Single)

Expands this box (if needed) to incluce the given coordinate.

Declaration
public Box ExpandWith(float lat, float lon)
Parameters
System.Single lat

System.Single lon

Returns
Box

IntersectsPotentially(Single, Single, Single, Single)

Returns true if the line potentially intersects with this box.

Declaration
public bool IntersectsPotentially(float longitude1, float latitude1, float longitude2, float latitude2)
Parameters
System.Single longitude1

System.Single latitude1

System.Single longitude2

System.Single latitude2

Returns
System.Boolean

Overlaps(Box)

Returns true if the given box overlaps with this one. Partial overlaps also return true.

Declaration
public bool Overlaps(Box box)
Parameters
Box box

The other box.

Returns
System.Boolean

True if any parts of the two boxes overlap.

Overlaps(Single, Single)

Returns true if this box overlaps the given coordinates.

Declaration
public bool Overlaps(float lat, float lon)
Parameters
System.Single lat

System.Single lon

Returns
System.Boolean

Resize(Single)

Returns a resized version of this box.

Declaration
public Box Resize(float e)
Parameters
System.Single e

Returns
Box

Back to top Built by Itinero, MIT licensed.