QML 基础类型 vector 和 matrix
来源:互联网 发布:北京信索咨询集团知乎 编辑:程序博客网 时间:2024/05/23 01:11
vector2D vector3D vector4D 和 matrix4x4 是QML中与opengl相关的一些基础类型。
vector2D vector3D vector4D几乎具有一致的借口和函数,主要用于保存一个点的信息。
matrix4x4 用来表示具有16个元素的数组,主要用来做opengl中的matrix计算,如修改坐标系,旋转,移动等操作。
vector*D 常用的函数:
Function Signature Description
real dotProduct(vector2d other)
Returns the scalar real result of the dot product ofthis vector2d with theother vector2d
vector2d times(vector2d other)
Returns the vector2d result of multiplyingthis vector2d with theother vector2d
vector2d times(real factor)
Returns the vector2d result of multiplyingthis vector2d with the scalarfactor
vector2d plus(vector2d other)
Returns the vector2d result of the addition ofthis vector2d with theother vector2d
vector2d minus(vector2d other)
Returns the vector2d result of the subtraction ofother vector2d fromthis vector2d
vector2d normalized()
Returns the normalized form ofthis vector
real length()
Returns the scalar real value of the length ofthis vector2d
- QML 基础类型 vector 和 matrix
- QML 基础类型 - date
- QML 基础类型 - point
- QML 基础类型 - Rectangle
- QML 基础类型 - size
- QML 基础类型 - color
- QML 基础类型 - font
- QML类型
- QML类型
- QML基础
- QML基础
- QML类型(QML Types)
- C++语法基础--标准库类型--vector
- matlab中vector、array和matrix的区别
- mahout math中相关matrix和vector的用法DEMO
- numpy基础——matrix.transpose() 和 matrix.getA()
- mul,vector,matrix
- matrix/vector derivatives
- 解决response.write输出脚本后出现页面变形的问题
- 集合框架中的工具类
- Linux 标准目录结构
- 业务对象销售订单
- 用php实现备份数据库ZIP及导出
- QML 基础类型 vector 和 matrix
- Decode Ways
- 开源C/C++网络库比较
- MyEclipse搭建SSH框架 Struts2.1+Spring3.0+hibernate3.3
- java字符串转数字
- 网页中实现"分享至微博、QQ空间等"代码示例
- 赵雅智:拨打电话操作
- 自己编写克隆函数
- Spring集成Activiti配置