Returns whether the given static vector is in default state.
Parameters
v
The vector to be tested for its default state.
Returns
true in case the given vector is component-wise zero, false otherwise.
This function checks whether the static vector is in default state. For instance, in case the static vector is instantiated for a built-in integral or floating point data type, the function returns true in case all vector elements are 0 and false in case any vector element is not 0. Following example demonstrates the use of the isDefault function:
Returns whether the invariants of the given static vector are intact.
Parameters
v
The static vector to be tested.
Returns
true in case the given vector's invariants are intact, false otherwise.
This function checks whether the invariants of the static vector are intact, i.e. if its state is valid. In case the invariants are intact, the function returns true, else it will return false. The following example demonstrates the use of the isIntact() function:
Unary perp dot product operator for the calculation of a perpendicular vector ( ).
Parameters
v
The vector to be rotated.
Returns
The perpendicular vector.
The "perp dot product" for the vectors and is a modification of the two-dimensional dot product in which is replaced by the perpendicular vector rotated 90 degrees to the left defined by Hill (1994).