MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::SymMatrix4< T > Struct Template Reference

#include <MRSymMatrix4.h>

Public Types

using ValueType = T
 

Public Member Functions

constexpr SymMatrix4 () noexcept=default
 
template<typename U >
constexpr SymMatrix4 (const SymMatrix4< U > &m)
 
constexpr T trace () const noexcept
 computes trace of the matrix
 
constexpr T normSq () const noexcept
 computes the squared norm of the matrix, which is equal to the sum of 16 squared elements
 
SymMatrix4operator+= (const SymMatrix4< T > &b)
 
SymMatrix4operator-= (const SymMatrix4< T > &b)
 
SymMatrix4operator*= (T b)
 
SymMatrix4operator/= (T b)
 
bool operator== (const SymMatrix4< T > &) const =default
 

Static Public Member Functions

static constexpr SymMatrix4 identity () noexcept
 
static constexpr SymMatrix4 diagonal (T diagVal) noexcept
 

Public Attributes

xx = 0
 zero matrix by default
 
xy = 0
 
xz = 0
 
xw = 0
 
yy = 0
 
yz = 0
 
yw = 0
 
zz = 0
 
zw = 0
 
ww = 0
 

Related Symbols

(Note that these are not member symbols.)

template<typename T >
Vector4< T > operator* (const SymMatrix4< T > &a, const Vector4< T > &b)
 x = a * b
 
template<typename T >
SymMatrix4< T > outerSquare (const Vector4< T > &a)
 x = a * a^T
 
template<typename T >
SymMatrix4< T > outerSquare (T k, const Vector4< T > &a)
 x = k * a * a^T
 

Detailed Description

template<typename T>
struct MR::SymMatrix4< T >

symmetric 4x4 matrix


The documentation for this struct was generated from the following file: