Represents a bounds.
More...
|
static Luciad.Geometries.Bounds | BoundsUnion (Luciad.Geometries.Bounds bounds1, Luciad.Geometries.Bounds bounds2) |
| Returns the union of the two bounds objects, provided they are defined in the same coordinate reference. More...
|
|
static bool | Contains2D (Luciad.Geometries.Bounds bounds, Luciad.Cartesian.Coordinate coordinate, double eps=0) |
| Checks if this bounds contains the specified coordinate, considering only the x and y values. More...
|
|
static bool | Contains2D (Luciad.Geometries.Bounds bounds1, Luciad.Geometries.Bounds bounds2, double eps=0) |
| Checks if the first bounds contains the second bounds, only considering x and y values. More...
|
|
static bool | Contains3D (Luciad.Geometries.Bounds bounds, Luciad.Cartesian.Coordinate coordinate, double eps=0) |
| Checks if the first bounds contains the second bounds. More...
|
|
static bool | Interacts2D (Luciad.Geometries.Bounds bounds1, Luciad.Geometries.Bounds bounds2, double eps=0) |
| Checks of two given bounds geometries have an interaction, only considering x and y values. More...
|
|
static Luciad.Geometries.Bounds | Intersection2D (Luciad.Geometries.Bounds bounds1, Luciad.Geometries.Bounds bounds2) |
| Returns the intersection of the two given bounds geometries. More...
|
|
◆ Bounds() [1/3]
◆ Bounds() [2/3]
Creates a new bounds instance based on a point, and the width, height and depth with respect to that point.
- Parameters
-
reference | the coordinate reference |
location | the lower left location of the bounds |
width | the width |
height | the height |
depth | the depth |
◆ Bounds() [3/3]
Creates a new bounds instance based on lower left and upper right corners.
This method takes wrap-around the 180° meridian into account when the coordinate reference is geodetic.
- Parameters
-
reference | the coordinate reference |
lowerLeft | the lower left corner of the bounds |
upperRight | the upper right corner of the bounds |
◆ BoundsUnion()
Returns the union of the two bounds objects, provided they are defined in the same coordinate reference.
- Parameters
-
bounds1 | the first bounds. |
bounds2 | the second bounds. |
- Returns
- the union of the two bounds objects.
- Exceptions
-
System.ArgumentException | if the bounds are not defined in the same coordinate reference. |
◆ Contains2D() [1/2]
Checks if this bounds contains the specified coordinate, considering only the x and y values.
- Returns
- true if this bounds contains the specified coordinate, considering only the x and y values.
◆ Contains2D() [2/2]
Checks if the first bounds contains the second bounds, only considering x and y values.
- Parameters
-
bounds1 | a bounds instance. |
bounds2 | an other bounds instance. |
eps | a tolerance for the contains check. |
- Returns
- if the first bounds contains the second bounds.
- Exceptions
-
System.ArgumentException | if the bounds are not defined in the same coordinate reference. |
◆ Contains3D()
Checks if the first bounds contains the second bounds.
- Parameters
-
bounds | a bounds instance. |
coordinate | a coordinate. |
eps | a tolerance for the contains check. |
- Returns
- true if this bounds contains the specified coordinate.
◆ Equals()
override bool Luciad.Geometries.Bounds.Equals |
( |
object |
other | ) |
|
|
inline |
◆ GetHashCode()
override int Luciad.Geometries.Bounds.GetHashCode |
( |
| ) |
|
|
inline |
◆ Interacts2D()
Checks of two given bounds geometries have an interaction, only considering x and y values.
- Parameters
-
bounds1 | the first bounds. |
bounds2 | the second bounds. |
eps | a tolerance for the interaction check. |
- Returns
- true if the two bounds interact in 2D.
- Exceptions
-
System.ArgumentException | if the bounds are not defined in the same coordinate reference. |
◆ Intersection2D()
Returns the intersection of the two given bounds geometries.
- Parameters
-
bounds1 | a bounds instance |
bounds2 | an other bounds instance |
- Returns
- the intersection of the given bounds geometries. If geodetic bounds, the result is normalized.
◆ Center
The center of this bounds instance.
[get]
Returns the center of this bounds instance. When this bounds uses a geodetic reference, this method normalizes the result.
◆ Depth
double Luciad.Geometries.Bounds.Depth |
|
get |
The depth of this bounds instance.
[get]
Returns the depth of this bounds instance.
◆ Height
double Luciad.Geometries.Bounds.Height |
|
get |
The height of this bounds instance.
[get]
Returns the height of this bounds instance.
◆ Location
The lower left corner of this bounds instance.
[get]
Returns the lower left corner of this bounds instance.
◆ LowerLeftCorner
The lower left corner of this bounds instance.
[get]
Returns the lower left corner of this bounds instance. When this bounds uses a geodetic reference, this method normalizes the result.
◆ LowerRightCorner
The lower right corner of this bounds instance.
[get]
Returns the lower right corner of this bounds instance. When this bounds uses a geodetic reference, this method normalizes the result.
◆ UpperLeftCorner
The upper left corner of this bounds instance.
[get]
Returns the upper left corner of this bounds instance. When this bounds uses a geodetic reference, this method normalizes the result.
◆ UpperRightCorner
The upper right corner of this bounds instance.
[get]
Returns the upper right corner of this bounds instance. When this bounds uses a geodetic reference, this method normalizes the result.
◆ Width
double Luciad.Geometries.Bounds.Width |
|
get |
The width of this bounds instance.
[get]
Returns the width of this bounds instance.