gz/math/Matrix3.hh
T & operator()(size_t _row, size_t _col)
Array subscript operator.
Definition: gz/math/Matrix3.hh:411
const T & operator()(size_t _row, size_t _col) const
Array subscript operator.
Definition: gz/math/Matrix3.hh:401
Definition: gz/math/AdditivelySeparableScalarField3.hh:27
bool Equal(const Matrix3 &_m, const T &_tol) const
Equality test with tolerance.
Definition: gz/math/Matrix3.hh:360
void From2Axes(const Vector3< T > &_v1, const Vector3< T > &_v2)
Set the matrix to represent rotation from vector _v1 to vector _v2, so that _v2.Normalize() == this *...
Definition: gz/math/Matrix3.hh:172
Matrix3(const Matrix3< T > &_m)
Copy constructor.
Definition: gz/math/Matrix3.hh:56
bool operator!=(const Matrix3< T > &_m) const
Inequality test operator.
Definition: gz/math/Matrix3.hh:392
static const Matrix3< T > Identity
Identity matrix.
Definition: gz/math/Matrix3.hh:43
T SquaredLength() const
Return the square of the length (magnitude) of the vector.
Definition: gz/math/Vector3.hh:129
friend std::ostream & operator<<(std::ostream &_out, const Matrix3< T > &_m)
Stream insertion operator.
Definition: gz/math/Matrix3.hh:492
void Transpose()
Transpose this matrix.
Definition: gz/math/Matrix3.hh:471
friend Vector3< T > operator*(const Vector3< T > &_v, const Matrix3< T > &_m)
Matrix left multiplication operator for Vector3. Treats the Vector3 like a row vector multiplying the...
Definition: gz/math/Matrix3.hh:346
Matrix3< T > & operator=(const Matrix3< T > &_mat)
Equal operator. this = _mat.
Definition: gz/math/Matrix3.hh:225
Matrix3(T _v00, T _v01, T _v02, T _v10, T _v11, T _v12, T _v20, T _v21, T _v22)
Constructor.
Definition: gz/math/Matrix3.hh:71
Matrix3< T > operator*(const T &_s) const
returns the element wise scalar multiplication
Definition: gz/math/Matrix3.hh:262
void Normalize()
Normalize the quaternion.
Definition: gz/math/Quaternion.hh:224
Matrix3< T > operator-(const Matrix3< T > &_m) const
returns the element wise difference of two matrices
Definition: gz/math/Matrix3.hh:232
Matrix3< T > operator+(const Matrix3< T > &_m) const
returns the element wise sum of two matrices
Definition: gz/math/Matrix3.hh:247
Matrix3< T > & operator=(const Quaternion< T > &_q)
Set the matrix3 from a quaternion.
Definition: gz/math/Matrix3.hh:384
T precision(const T &_a, const unsigned int &_precision)
get value at a specified precision
Definition: gz/math/Helpers.hh:590
static const size_t IGN_TWO_SIZE_T
size_t type with a value of 2
Definition: gz/math/Helpers.hh:233
const T & Y() const
Get the y component.
Definition: gz/math/Quaternion.hh:979
STL class.
T clamp(T _v, T _min, T _max)
Simple clamping function.
Definition: gz/math/Helpers.hh:406
T setf(T... args)
Vector3< T > operator*(const Vector3< T > &_vec) const
Multiplication operator with Vector3 on the right treated like a column vector.
Definition: gz/math/Matrix3.hh:320
void Col(unsigned int _c, const Vector3< T > &_v)
Set a column.
Definition: gz/math/Matrix3.hh:213
The Vector3 class represents the generic vector containing 3 elements. Since it's commonly used to ke...
Definition: gz/math/Vector3.hh:41
friend std::istream & operator>>(std::istream &_in, Matrix3< T > &_m)
Stream extraction operator.
Definition: gz/math/Matrix3.hh:512
const T & Z() const
Get the z component.
Definition: gz/math/Quaternion.hh:986
void Set(T _v00, T _v01, T _v02, T _v10, T _v11, T _v12, T _v20, T _v21, T _v22)
Set values.
Definition: gz/math/Matrix3.hh:116
bool operator==(const Matrix3< T > &_m) const
Equality test operator.
Definition: gz/math/Matrix3.hh:376
T swap(T... args)
void Axes(const Vector3< T > &_xAxis, const Vector3< T > &_yAxis, const Vector3< T > &_zAxis)
Set the matrix from three axis (1 per column)
Definition: gz/math/Matrix3.hh:135
T fail(T... args)
Matrix3< T > Inverse() const
Return the inverse matrix.
Definition: gz/math/Matrix3.hh:437
friend Matrix3< T > operator*(T _s, const Matrix3< T > &_m)
Matrix multiplication operator for scaling.
Definition: gz/math/Matrix3.hh:335
void Axis(const Vector3< T > &_axis, T _angle)
Set the matrix from an axis and angle.
Definition: gz/math/Matrix3.hh:147
static const size_t IGN_ZERO_SIZE_T
size_t type with a value of 0
Definition: gz/math/Helpers.hh:227
T Dot(const Vector3< T > &_v) const
Return the dot product of this vector and another vector.
Definition: gz/math/Vector3.hh:205
const T & X() const
Get the x component.
Definition: gz/math/Quaternion.hh:972
T memcpy(T... args)
Matrix3(const Quaternion< T > &_q)
Construct Matrix3 from a quaternion.
Definition: gz/math/Matrix3.hh:88
Matrix3< T > operator*(const Matrix3< T > &_m) const
Matrix multiplication operator.
Definition: gz/math/Matrix3.hh:273
static const Matrix3< T > Zero
Zero matrix.
Definition: gz/math/Matrix3.hh:46
STL class.
T Determinant() const
Return the determinant of the matrix.
Definition: gz/math/Matrix3.hh:419
const T & W() const
Get the w component.
Definition: gz/math/Quaternion.hh:965
Matrix3< T > Transposed() const
Return the transpose of this matrix.
Definition: gz/math/Matrix3.hh:480
T memset(T... args)
Vector3 Cross(const Vector3< T > &_v) const
Return the cross product of this vector with another vector.
Definition: gz/math/Vector3.hh:195