how to find the two parts of a vector 2 c 2b 2b

Solutions on MaxInterview for how to find the two parts of a vector 2 c 2b 2b by the best coders in the world

showing results for - "how to find the two parts of a vector 2 c 2b 2b"
Mads
16 Jan 2016
1// Our Vector2
2Vector2 vec{1, 2};
3
4// The first element of the vector
5randomFunctionA(vec.x);
6
7// and the second element of the vector
8randomFunctionB(vec.y);
9
10// The same goes for a vector3 but you use a z for the third element