Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/intern/math_matrix.c
| Context not available. | |||||
| mul_m4_m4m4(mat, mat, tmat); | mul_m4_m4m4(mat, mat, tmat); | ||||
| } | } | ||||
| void linear_blend_m4_m4m4(float R[4][4], const float A[4][4], const float B[4][4], const float t) | |||||
| { | |||||
| float t0 = 1.0f - t; | |||||
| for (int i = 0; i < 4; i++) { | |||||
| for (int j = 0; j < 4; j++) { | |||||
| R[i][j] = t0 * A[i][j] + t * B[i][j]; | |||||
| } | |||||
| } | |||||
| } | |||||
| void blend_m3_m3m3(float out[3][3], const float dst[3][3], const float src[3][3], const float srcweight) | void blend_m3_m3m3(float out[3][3], const float dst[3][3], const float src[3][3], const float srcweight) | ||||
| { | { | ||||
| float srot[3][3], drot[3][3]; | float srot[3][3], drot[3][3]; | ||||
| Context not available. | |||||