Searched refs:win_half (Results 1 – 2 of 2) sorted by relevance
61 win_half = sctx.winsize * 0.562 proj_co[0] = (proj_co[0] + 1.0) * win_half[0]63 proj_co[1] = (proj_co[1] + 1.0) * win_half[1]169 win_half = sctx.winsize * 0.5189 va2d[0] = (va2d[0] + 1.0) * win_half[0]190 va2d[1] = (va2d[1] + 1.0) * win_half[1]191 vb2d[0] = (vb2d[0] + 1.0) * win_half[0]192 vb2d[1] = (vb2d[1] + 1.0) * win_half[1]
829 float win_half[2], relative_mval[2], px[4], py[4]; in dist_squared_to_projected_aabb_precalc() local831 mul_v2_v2fl(win_half, winsize, 0.5f); in dist_squared_to_projected_aabb_precalc()832 sub_v2_v2v2(precalc->mval, mval, win_half); in dist_squared_to_projected_aabb_precalc()834 relative_mval[0] = precalc->mval[0] / win_half[0]; in dist_squared_to_projected_aabb_precalc()835 relative_mval[1] = precalc->mval[1] / win_half[1]; in dist_squared_to_projected_aabb_precalc()842 precalc->pmat[i][0] *= win_half[0]; in dist_squared_to_projected_aabb_precalc()843 precalc->pmat[i][1] *= win_half[1]; in dist_squared_to_projected_aabb_precalc()