osg.Matrix4x3Template类是一个模板类,继承自osg::ValueObject,表示一个4x3矩阵。
osg::Matrix4x3Template():创建一个单位矩阵。
osg::Matrix4x3Template(const osg::Matrix4x3Template& mat):拷贝构造函数。
osg::Matrix4x3Template(T a00, T a01, T a02, T a10, T a11, T a12, T a20, T a21, T a22, T a30, T a31, T a32):创建一个矩阵,具体值由给定参数确定。
void makeIdentity():将矩阵设为单位矩阵。
void makeScale(const T& sx, const T& sy, const T& sz):将矩阵设置为缩放矩阵。
void makeTranslate(const T& tx, const T& ty, const T& tz):将矩阵设置为平移矩阵。
void makeRotate(const T& angle, const T& x, const T& y, const T& z):将矩阵设置为绕给定轴旋转的矩阵。
const T& operator()(int row, int col) const:获取给定行、列位置的元素值。
T& operator()(int row, int col):设置给定行、列位置的元素值。
T operator[](int i) const:获取第i个元素的值。
T& operator[](int i):设置第i个元素的值。
void set(T a00, T a01, T a02, T a10, T a11, T a12, T a20, T a21, T a22, T a30, T a31, T a32):设置矩阵的值。
void set(const osg::Vec3Template<T>& col0, const osg::Vec3Template<T>& col1, const osg::Vec3Template<T>& col2, const osg::Vec3Template<T>& col3):设置矩阵的值。(按列设置)
void setTrans(const osg::Vec3Template<T>& trans):设置平移部分的值。
osg::Vec3Template<T> getTrans() const:获取平移部分的值。
void setRotate(const osg::Quat& quat):设置旋转部分的值。
osg::Quat getRotate() const:获取旋转部分的值。
osg::Vec3Template<T> getScale() const:获取缩放部分的值。
static const osg::Matrix4x3Template<T> identity():返回一个单位矩阵。
static const osg::Matrix4x3Template<T> scale(T sx, T sy, T sz):返回一个缩放矩阵。
static const osg::Matrix4x3Template<T> translate(T tx, T ty, T tz):返回一个平移矩阵。
bool operator==(const osg::Matrix4x3Template& rhs) const:相等比较。
bool operator!=(const osg::Matrix4x3Template& rhs) const:不等比较。
osg::Matrix4x3Template& operator=(const osg::Matrix4x3Template& rhs):赋值操作符。
osg::Matrix4x3Template operator+(const osg::Matrix4x3Template& rhs) const:矩阵加法。
osg::Matrix4x3Template& operator+=(const osg::Matrix4x3Template& rhs):矩阵加法。
osg::Matrix4x3Template operator-(const osg::Matrix4x3Template& rhs) const:矩阵减法。
osg::Matrix4x3Template& operator-=(const osg::Matrix4x3Template& rhs):矩阵减法。
osg::Matrix4x3Template operator-() const:矩阵取负。
osg::Matrix4x3Template operator*(const osg::Matrix4x3Template& rhs) const:矩阵乘法。
osg::Matrix4x3Template operator*(T rhs) const:矩阵和标量的乘法。
osg::Matrix4x3Template& operator*=(const osg::Matrix4x3Template& rhs):矩阵乘法。
osg::Matrix4x3Template& operator*=(T rhs):矩阵和标量的乘法。
osg::Vec3Template<T> operator*(const osg::Vec3Template<T>& rhs) const:矩阵和向量的乘法。