Assign to a vector variable

 
 
 

You can assign a literal vector value or another vector variable to a vector variable. Enclose a literal vector value in double angle brackets.

Examples

vector $top_velocity = <<2,2,5>>;

This assigns the vector $top_velocity the value <<2,2,5>>.

vector $temp;
$temp = $top_velocity;

This assigns the value of vector variable $top_velocity to the vector variable $temp.

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License