geographical-aspect-ratio
v0.1.1
Published
Utility to calculate aspect ratio from bounding box, and get width or height
Maintainers
Readme
Classes
Functions
Typedefs
AspectRatioCalculator
Kind: global class
- AspectRatioCalculator
- new AspectRatioCalculator()
- instance
- .bbox : BBox
- .aspectRatio : number
- .getHeight(width) ⇒ number
- .getWidth(height) ⇒ number
- static
new AspectRatioCalculator()
AspectRatioCalculator class
aspectRatioCalculator.bbox : BBox
The input BBox
Kind: instance property of AspectRatioCalculator
aspectRatioCalculator.aspectRatio : number
BBox's aspect ratio
Kind: instance property of AspectRatioCalculator
aspectRatioCalculator.getHeight(width) ⇒ number
Gets height from width
Kind: instance method of AspectRatioCalculator
| Param | Type | | ----- | ------------------- | | width | number |
aspectRatioCalculator.getWidth(height) ⇒ number
Gets height from height
Kind: instance method of AspectRatioCalculator
| Param | Type | | ------ | ------------------- | | height | number |
AspectRatioCalculator.AspectRatioCalculator
Kind: static class of AspectRatioCalculator
new AspectRatioCalculator(bbox)
Creates an instance of AspectRatioCalculator.
| Param | Type | | ----- | -------------------------- | | bbox | BBox |
getAbsoluteDistance(itemB, itemA) ⇒ number
Gets absolute distances
Kind: global function
| Param | Type | | ----- | ------------------- | | itemB | number | | itemA | number |
BBox : Array.<number>
Kind: global typedef
