Home
last modified time | relevance | path

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

/dports/graphics/blender/blender-2.91.0/release/scripts/addons/mesh_snap_utilities_line/snap_context_l/
H A Dutils_projection.py61 win_half = sctx.winsize * 0.5
62 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.5
189 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]
/dports/graphics/blender/blender-2.91.0/source/blender/blenlib/intern/
H A Dmath_geom.c829 float win_half[2], relative_mval[2], px[4], py[4]; in dist_squared_to_projected_aabb_precalc() local
831 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()