Home | History | Annotate | Download | only in gtc

Lines Matching full:tvec2

55 	GLM_FUNC_QUALIFIER T perlin(detail::tvec2<T, P> const & Position)
72 detail::tvec2<T, P> g00(gx.x, gy.x);
73 detail::tvec2<T, P> g10(gx.y, gy.y);
74 detail::tvec2<T, P> g01(gx.z, gy.z);
75 detail::tvec2<T, P> g11(gx.w, gy.w);
83 T n00 = dot(g00, detail::tvec2<T, P>(fx.x, fy.x));
84 T n10 = dot(g10, detail::tvec2<T, P>(fx.y, fy.y));
85 T n01 = dot(g01, detail::tvec2<T, P>(fx.z, fy.z));
86 T n11 = dot(g11, detail::tvec2<T, P>(fx.w, fy.w));
88 detail::tvec2<T, P> fade_xy = fade(detail::tvec2<T, P>(Pf.x, Pf.y));
89 detail::tvec2<T, P> n_x = mix(detail::tvec2<T, P>(n00, n01), detail::tvec2<T, P>(n10, n11), fade_xy.x);
105 detail::tvec4<T, P> iy = detail::tvec4<T, P>(detail::tvec2<T, P>(Pi0.y), detail::tvec2<T, P>(Pi1.y));
160 detail::tvec2<T, P> n_yz = mix(detail::tvec2<T, P>(n_z.x, n_z.y), detail::tvec2<T, P>(n_z.z, n_z.w), fade_xyz.y);
231 detail::tvec2<T, P> n_yz = mix(
232 detail::tvec2<T, P>(n_z.x, n_z.y),
233 detail::tvec2<T, P>(n_z.z, n_z.w), fade_xyz.y);
369 detail::tvec2<T, P> n_yzw = mix(detail::tvec2<T, P>(n_zw.x, n_zw.y), detail::tvec2<T, P>(n_zw.z, n_zw.w), fade_xyzw.y);
376 GLM_FUNC_QUALIFIER T perlin(detail::tvec2<T, P> const & Position, detail::tvec2<T, P> const & rep)
394 detail::tvec2<T, P> g00(gx.x, gy.x);
395 detail::tvec2<T, P> g10(gx.y, gy.y);
396 detail::tvec2<T, P> g01(gx.z, gy.z);
397 detail::tvec2<T, P> g11(gx.w, gy.w);
405 T n00 = dot(g00, detail::tvec2<T, P>(fx.x, fy.x));
406 T n10 = dot(g10, detail::tvec2<T, P>(fx.y, fy.y));
407 T n01 = dot(g01, detail::tvec2<T, P>(fx.z, fy.z));
408 T n11 = dot(g11, detail::tvec2<T, P>(fx.w, fy.w));
410 detail::tvec2<T, P> fade_xy = fade(detail::tvec2<T, P>(Pf.x, Pf.y));
411 detail::tvec2<T, P> n_x = mix(detail::tvec2<T, P>(n00, n01), detail::tvec2<T, P>(n10, n11), fade_xy.x);
482 detail::tvec2<T, P> n_yz = mix(detail::tvec2<T, P>(n_z.x, n_z.y), detail::tvec2<T, P>(n_z.z, n_z.w), fade_xyz.y);
616 detail::tvec2<T, P> n_yzw = mix(detail::tvec2<T, P>(n_zw.x, n_zw.y), detail::tvec2<T, P>(n_zw.z, n_zw.w), fade_xyzw.y);
622 GLM_FUNC_QUALIFIER T simplex(glm::detail::tvec2<T, P> const & v)
631 detail::tvec2<T, P> i = floor(v + dot(v, detail::tvec2<T, P>(C[1])));
632 detail::tvec2<T, P> x0 = v - i + dot(i, detail::tvec2<T, P>(C[0]));
637 detail::tvec2<T, P> i1 = (x0.x > x0.y) ? detail::tvec2<T, P>(1, 0) : detail::tvec2<T, P>(0, 1);
642 x12 = detail::tvec4<T, P>(detail::tvec2<T, P>(x12) - i1, x12.z, x12.w);
645 i = mod(i, detail::tvec2<T, P>(289)); // Avoid truncation effects in permutation
652 dot(detail::tvec2<T, P>(x12.x, x12.y), detail::tvec2<T, P>(x12.x, x12.y)),
653 dot(detail::tvec2<T, P>(x12.z, x12.w), detail::tvec2<T, P>(x12.z, x12.w))), detail::tvec3<T, P>(0));
681 detail::tvec2<T, P> const C(1.0 / 6.0, 1.0 / 3.0);
781 //i0.zw += 1.0 - detail::tvec2<T, P>(isYZ.x, isYZ.y);
831 detail::tvec2<T, P> m1 = max(T(0.6) - detail::tvec2<T, P>(dot(x3, x3), dot(x4, x4) ), detail::tvec2<T, P>(0));
836 dot(m1 * m1, detail::tvec2<T, P>(dot(p3, x3), dot(p4, x4))));