Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
此函数将 3D 点转换为屏幕坐标,但它返回一个 vector3。Z值的意义何在?为什么它不只返回一个 D3DXVECTOR2?
Z 值表示深度维度。把它想象成物体在屏幕后面很远。这对于决定用户在选择屏幕上的点时打算选择哪个对象等很有用。该信息是由 Vec3Project 使用的 3D 矩阵乘法生成的。