Arithmetic Operators
+
Add two elements
$C = $A + $B;
-
Subtract two elements
$C = $A - $B;
*
Multiply two elements
$C = $A * $B;
/
Divide two elements together
$C = $A / $B;
%
Find the fractional remainder of the division
$C = $A % $B;
^
Find the cross product of two vectors
vector $a = <<2,2,2>>;
vector $b =<<2,4,6>>;
vector $c =$a^$b;
print $c;
//returns 4 -8 4
cross product can be broken down as.
(a.y * b.z - a.z * b.y,
a.z * b.x - a.x * b.z,
a.x * b.y - a.y * b.x)
The cross product can be used to find a vector that is perpendicular to the two input vectors.