SimulationBuilder > Shared > Vectors
The Glotzilla Array is an array of three values of type float_t?.
A number of overloaded operators and functions are defined for Arrays to facilitate data manipulation.
+,-,*/
The '+' and '-' operators have been overloaded so basic arithmetic can be performed between Arrays and float_ts. Adding or subtracting two Arrays returns an Array whose members have been added. Adding or subtracting a float_t and an Array returns an Array where the float_t has been added or subtracted to every member of the Array.
Similarly, the '*' and '/' operators have been overloaded so pairwise multiplication and division of Array elements can be performed. Also, every element of an Array can be multiplied or divided by a float_t using these operators.
+=, -=, *=, /=
These four operators have been defined so a float_t or Array can be added, subtracted, multiplied or divided into the array that appears on the left hand side of the expression.
Other functions
The cross product, dot product, magnitude and magnitude squared functions are some of the other useful functions defined for Arrays.