XMMatrixLookAtLH
来源:互联网 发布:java程序员培训 编辑:程序博客网 时间:2024/05/02 01:35
The XNA Math library provides the following function for computing the view matrix based on the just described process: XMMATRIX XMMatrixLookAtLH( // Outputs resulting view matrix V FXMVECTOR EyePosition, // Input camera position Q FXMVECTOR FocusPosition, // Input target point T FXMVECTOR UpDirection); // Input world up vector j Usually the world’s y-axis corresponds to the “up” direction, so the “up” vector is almost always j = (0,1,0). As an example, suppose we want to position the camera at the point (5, 3, −10) relative to the world space, and have the camera look at the origin of the world (0, 0, 0). We can build the view matrix by writing:
XMVECTOR pos = XMVectorSet(5, 3, -10, 1.0f);
XMVECTOR target = XMVectorZero();
XMVECTOR up = XMVectorSet(0.0f, 1.0f, 0.0f, 0.0f);
XMMATRIX V = XMMatrixLookAtLH(pos, target, up);
- XMMatrixLookAtLH
- A phishing scam from Cambodia
- 黑马程序员---------银行业务管理系统
- 将strng类型变量字母转换成大写字母
- pb加密码钥匙
- 5.2 变长参数表(函数的实参个数可变)编程示例
- XMMatrixLookAtLH
- C#本地操作数据库
- PAT-1038
- 学习笔记之MFC修改默认窗口大小
- No Suitable Driver Found For Jdbc_我的解决方法
- Winform技巧:登录窗体的19个效果
- 《Fundamentals of Project Management 4th Edition》 读书笔记 第四章 为项目开发使命、远景和目标
- phpize
- hdu 1503 Advanced Fruits