Dem Bones  1.2.0
Skinning Decomposition Library
MatBlocks.h
Go to the documentation of this file.
1 // Dem Bones - Skinning Decomposition Library //
3 // Copyright (c) 2019, Electronic Arts. All rights reserved. //
5 
6 
7 
15 #ifndef DEM_BONES_MAT_BLOCKS
16 #define DEM_BONES_MAT_BLOCKS
17 
19 #define blk4(k, j) template block<4, 4>((k)*4, (j)*4)
20 
22 #define rotMat(k, j) template block<3, 3>((k)*4, (j)*4)
23 
25 #define transVec(k, j) col((j)*4+3).template segment<3>((k)*4)
26 
28 #define vec3(k, i) col(i).template segment<3>((k)*3)
29 
30 #endif