Sen API
Sen Libraries
Loading...
Searching...
No Matches
mat3.h File Reference
#include "quat.h"
#include "vec3.h"
#include "sen/core/base/compiler_macros.h"
#include "sen/core/base/numbers.h"
#include <cmath>
#include <initializer_list>

Go to the source code of this file.

Classes

class  sen::util::Mat3< T >
 Handles all mathematical ops involving 3D Matrices. More...

Namespaces

namespace  sen
namespace  sen::util

Macros

#define INNER_PRODUCT(a, b, r, c)
#define SET_ROW(row, v1, v2, v3)

Typedefs

using sen::util::Mat3f = Mat3<f32>
using sen::util::Mat3d = Mat3<f64>

Macro Definition Documentation

◆ INNER_PRODUCT

#define INNER_PRODUCT ( a,
b,
r,
c )
Value:
((a).v_[r][0] * (b).v_[0][c]) + ((a).v_[r][1] * (b).v_[1][c]) + ((a).v_[r][2] * (b).v_[2][c])

◆ SET_ROW

#define SET_ROW ( row,
v1,
v2,
v3 )
Value:
v_[(row)][0] = (v1); \
v_[(row)][1] = (v2); \
v_[(row)][2] = (v3);