@elderbyte/ngx-starter 16.5.0 → 16.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -20,6 +20,12 @@ export declare class ElderQuantityService {
|
|
|
20
20
|
**************************************************************************/
|
|
21
21
|
createArea(length: Quantity, width: Quantity): Dimensions;
|
|
22
22
|
createDimensions(length: Quantity, width: Quantity, height: Quantity): Dimensions;
|
|
23
|
+
/**
|
|
24
|
+
* Returns a copy of the maximum (longest) edge of the dimensions.
|
|
25
|
+
*
|
|
26
|
+
* @param dimensions
|
|
27
|
+
*/
|
|
28
|
+
getMaxEdge(dimensions: Dimensions): Quantity;
|
|
23
29
|
/***************************************************************************
|
|
24
30
|
* *
|
|
25
31
|
* Constructor *
|
|
@@ -85,6 +91,15 @@ export declare class ElderQuantityService {
|
|
|
85
91
|
* @param right
|
|
86
92
|
*/
|
|
87
93
|
add(left: Quantity, right: Quantity): Quantity;
|
|
94
|
+
/**
|
|
95
|
+
* Returns the max quantity of an array of quantities.
|
|
96
|
+
*
|
|
97
|
+
* Example:
|
|
98
|
+
* Quantity(10, 'm'), Quantity(2500, 'cm'), Quantity(0.003, 'km') = Quantity(2500, 'cm')
|
|
99
|
+
*
|
|
100
|
+
* @param quantities
|
|
101
|
+
*/
|
|
102
|
+
max(quantities: Quantity[]): Quantity;
|
|
88
103
|
/**
|
|
89
104
|
* Transforms a quantity to another quantity of the same dimension by target-SI
|
|
90
105
|
*
|