unity 2d vector2.normalize code example
Example 1: unity normalize vector2
Vector2 pos;
Vector2 dir = pos.normalized;
Example 2: initializing 2d vector
vector<vector<int> > vec( n , vector<int> (m, 0));
Vector2 pos;
Vector2 dir = pos.normalized;
vector<vector<int> > vec( n , vector<int> (m, 0));