Searched refs:inv_half (Results 1 – 1 of 1) sorted by relevance
70 float inv_half; in quat_from_matrix4() local78 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()