📜  如何找到向量的两个部分 2 C++ - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:26.238000             🧑  作者: Mango

代码示例1
// Our Vector2
Vector2 vec{1, 2};

// The first element of the vector
randomFunctionA(vec.x);

// and the second element of the vector
randomFunctionB(vec.y);

// The same goes for a vector3 but you use a z for the third element