Class: Proj::Bounds3d
- Inherits:
-
Object
- Object
- Proj::Bounds3d
- Defined in:
- lib/proj/bounds3d.rb
Overview
Represents a 3D bounding box defined by minimum and maximum x/y/z values. Used with CoordinateOperationMixin#transform_bounds_3d to transform 3D regions between coordinate reference systems. Requires PROJ 9.6+.
Instance Attribute Summary collapse
-
#name ⇒ String?
readonly
Optional name for this bounds.
-
#xmax ⇒ Float
readonly
Maximum x value (e.g., east longitude).
-
#xmin ⇒ Float
readonly
Minimum x value (e.g., west longitude).
-
#ymax ⇒ Float
readonly
Maximum y value (e.g., north latitude).
-
#ymin ⇒ Float
readonly
Minimum y value (e.g., south latitude).
-
#zmax ⇒ Object
readonly
Returns the value of attribute zmax.
-
#zmin ⇒ Float
readonly
Minimum z value (e.g., lower elevation).
Instance Method Summary collapse
-
#initialize(xmin, ymin, zmin, xmax, ymax, zmax, name = nil) ⇒ Bounds3d
constructor
Creates a new 3D bounding box.
Constructor Details
#initialize(xmin, ymin, zmin, xmax, ymax, zmax, name = nil) ⇒ Bounds3d
Creates a new 3D bounding box.
35 36 37 38 39 40 41 42 43 |
# File 'lib/proj/bounds3d.rb', line 35 def initialize(xmin, ymin, zmin, xmax, ymax, zmax, name = nil) @xmin = xmin @ymin = ymin @zmin = zmin @xmax = xmax @ymax = ymax @zmax = zmax @name = name end |
Instance Attribute Details
#name ⇒ String? (readonly)
Returns Optional name for this bounds.
22 23 24 |
# File 'lib/proj/bounds3d.rb', line 22 def name @name end |
#xmax ⇒ Float (readonly)
Returns Maximum x value (e.g., east longitude).
22 |
# File 'lib/proj/bounds3d.rb', line 22 attr_reader :name, :xmin, :ymin, :zmin, :xmax, :ymax, :zmax |
#xmin ⇒ Float (readonly)
Returns Minimum x value (e.g., west longitude).
22 |
# File 'lib/proj/bounds3d.rb', line 22 attr_reader :name, :xmin, :ymin, :zmin, :xmax, :ymax, :zmax |
#ymax ⇒ Float (readonly)
Returns Maximum y value (e.g., north latitude).
22 |
# File 'lib/proj/bounds3d.rb', line 22 attr_reader :name, :xmin, :ymin, :zmin, :xmax, :ymax, :zmax |
#ymin ⇒ Float (readonly)
Returns Minimum y value (e.g., south latitude).
22 |
# File 'lib/proj/bounds3d.rb', line 22 attr_reader :name, :xmin, :ymin, :zmin, :xmax, :ymax, :zmax |
#zmax ⇒ Object (readonly)
Returns the value of attribute zmax.
22 |
# File 'lib/proj/bounds3d.rb', line 22 attr_reader :name, :xmin, :ymin, :zmin, :xmax, :ymax, :zmax |
#zmin ⇒ Float (readonly)
Returns Minimum z value (e.g., lower elevation).
22 |
# File 'lib/proj/bounds3d.rb', line 22 attr_reader :name, :xmin, :ymin, :zmin, :xmax, :ymax, :zmax |