Show:

A 3D bounding box. For 2D envelopes, see gdal.Envelope.

(Pure-javascript implementation of OGREnvelope3D)

Constructor

gdal.Envelope3D
(
  • bounds
)

Parameters:

  • [bounds] Object optional

    An object containing minX, maxX, minY, maxY, minZ, and maxZ values.

Methods

contains
(
  • envelope
)
Boolean

Determines if the provided envelope is wholly-contained by the current envelope.

Parameters:

  • envelope Envelope3D

Returns:

Boolean
intersect
(
  • envelope
)
Void

Updates the envelope to the intersection of the two envelopes.

Parameters:

  • envelope Envelope3D

Returns:

Void
intersects
(
  • envelope
)
Boolean

Determines if the provided envelope touches it.

Parameters:

  • envelope Envelope3D

Returns:

Boolean
isEmpty () Boolean

Determines if the envelope has not been set yet.

Returns:

Boolean
merge
(
  • envelope
)
Void

Unions the provided envelope with the current envelope.

Parameters:

  • envelope Envelope3D

Returns:

Void
merge
(
  • x
  • y
  • z
)
Void

Unions the provided envelope with the x/y/z coordinates provided.

Parameters:

  • x Number
  • y Number
  • z Number

Returns:

Void

Properties

maxX

Number

maxY

Number

maxZ

Number

minX

Number

minY

Number

minZ

Number