Home
last modified time | relevance | path

Searched refs:inv_half (Results 1 – 1 of 1) sorted by relevance

/dports/multimedia/obs-studio/obs-studio-27.1.3/libobs/graphics/
H A Dquat.c70 float inv_half; in quat_from_matrix4() local
78 inv_half = 0.5f / four_d; in quat_from_matrix4()
79 dst->x = (m->y.z - m->z.y) * inv_half; in quat_from_matrix4()
80 dst->y = (m->z.x - m->x.z) * inv_half; in quat_from_matrix4()
81 dst->z = (m->x.y - m->y.x) * inv_half; in quat_from_matrix4()
101 inv_half = 0.5f / four_d; in quat_from_matrix4()
102 dst->ptr[j] = (val->ptr[i][j] + val->ptr[j][i]) * inv_half; in quat_from_matrix4()
103 dst->ptr[k] = (val->ptr[i][k] + val->ptr[k][i]) * inv_half; in quat_from_matrix4()
104 dst->w = (val->ptr[j][k] - val->ptr[k][j]) * inv_half; in quat_from_matrix4()