Rotation remake
This commit is contained in:
@@ -63,9 +63,9 @@ class PIP_EXPORT PIMathMatrixT {
|
||||
typedef PIMathMatrixT<Cols, Rows, Type> _CMatrixI;
|
||||
typedef PIMathVectorT<Rows, Type> _CMCol;
|
||||
typedef PIMathVectorT<Cols, Type> _CMRow;
|
||||
static_assert(std::is_arithmetic<Type>::value, "Type must be arithmetic");
|
||||
static_assert(Rows > 0, "Row count must be > 0");
|
||||
static_assert(Cols > 0, "Column count must be > 0");
|
||||
static_assert(std::is_arithmetic<Type>::value, "Type must be arithmetic");
|
||||
static_assert(Rows > 0, "Row count must be > 0");
|
||||
static_assert(Cols > 0, "Column count must be > 0");
|
||||
public:
|
||||
PIMathMatrixT() {resize(Rows, Cols);}
|
||||
PIMathMatrixT(const PIVector<Type> & val) {resize(Rows, Cols); int i = 0; PIMM_FOR_I_WB(r, c) m[r][c] = val[i++];}
|
||||
@@ -86,7 +86,7 @@ public:
|
||||
static _CMatrix filled(const Type & v) {_CMatrix tm; PIMM_FOR_WB(r, c) tm.m[r][c] = v; return tm;}
|
||||
|
||||
/**
|
||||
* @brief Rotation the matrix by an "angle"
|
||||
* @brief Rotation the matrix by an "angle". Works only with 2x2 matrix, else return _CMatrix
|
||||
*
|
||||
* @param angle is the angle of rotation of the matrix
|
||||
* @return rotated matrix
|
||||
@@ -94,7 +94,7 @@ public:
|
||||
static _CMatrix rotation(double angle) {return _CMatrix();}
|
||||
|
||||
/**
|
||||
* @brief Rotation of the matrix by an "angle" along the X axis
|
||||
* @brief Rotation of the matrix by an "angle" along the X axis. Works only with 3x3 matrix, else return _CMatrix
|
||||
*
|
||||
* @param angle is the angle of rotation of the matrix along the X axis
|
||||
* @return rotated matrix
|
||||
@@ -102,7 +102,7 @@ public:
|
||||
static _CMatrix rotationX(double angle) {return _CMatrix();}
|
||||
|
||||
/**
|
||||
* @brief Rotation of the matrix by an "angle" along the Y axis
|
||||
* @brief Rotation of the matrix by an "angle" along the Y axis. Works only with 3x3 matrix, else return _CMatrix
|
||||
*
|
||||
* @param angle is the angle of rotation of the matrix along the Y axis
|
||||
* @return rotated matrix
|
||||
@@ -110,7 +110,7 @@ public:
|
||||
static _CMatrix rotationY(double angle) {return _CMatrix();}
|
||||
|
||||
/**
|
||||
* @brief Rotation of the matrix by an "angle" along the Z axis
|
||||
* @brief Rotation of the matrix by an "angle" along the Z axis. Works only with 3x3 matrix, else return _CMatrix
|
||||
*
|
||||
* @param angle is the angle of rotation of the matrix along the Z axis
|
||||
* @return rotated matrix
|
||||
@@ -118,7 +118,7 @@ public:
|
||||
static _CMatrix rotationZ(double angle) {return _CMatrix();}
|
||||
|
||||
/**
|
||||
* @brief Scaling the matrix along the X axis by the value "factor"
|
||||
* @brief Scaling the matrix along the X axis by the value "factor". Works only with 3x3 and 2x2 matrix, else return _CMatrix
|
||||
*
|
||||
* @param factor is the value of scaling by X axis
|
||||
* @return rotated matrix
|
||||
@@ -126,7 +126,7 @@ public:
|
||||
static _CMatrix scaleX(double factor) {return _CMatrix();}
|
||||
|
||||
/**
|
||||
* @brief Scaling the matrix along the Y axis by the value "factor"
|
||||
* @brief Scaling the matrix along the Y axis by the value "factor". Works only with 3x3 and 2x2 matrix, else return _CMatrix
|
||||
*
|
||||
* @param factor is the value of scaling by Y axis
|
||||
* @return rotated matrix
|
||||
@@ -134,7 +134,7 @@ public:
|
||||
static _CMatrix scaleY(double factor) {return _CMatrix();}
|
||||
|
||||
/**
|
||||
* @brief Scaling the matrix along the Z axis by the value "factor"
|
||||
* @brief Scaling the matrix along the Z axis by the value "factor". Works only with 3x3 matrix, else return _CMatrix
|
||||
*
|
||||
* @param factor is the value of scaling by Z axis
|
||||
* @return rotated matrix
|
||||
|
||||
Reference in New Issue
Block a user