-
-
Static method of the Dimensions constructor
that returns a value that represents the "zero"
of the Dimensions type.
-
-
Adds another Dimensions instance to this instance and
returns a new Dimensions.
This method is an implementation of vector addition.
This operation is useful for Quantity multiplication.
-
-
Returns true if the Dimensions `rhs` is equivalent to
this Dimensions object; false otherwise.
Returns:
boolean
-
-
Returns the magnitude (power) of
the dimension in slot `i`.
Parameters:
Name |
Type |
Description |
i |
number
|
|
Returns:
number
-
-
Multiplies this Dimensions by a scalar and returns a new Dimensions.
This method is an implementation of scalar vector multiplication.
This operation is useful for Quantity exponentiation.
Parameters:
Name |
Type |
Description |
scalar |
number
|
the scalar by which to multiply these Dimensions. |
-
-
Returns the size of the vector.
Returns:
number