Home
last modified time | relevance | path

Searched refs:T (Results 1 – 25 of 664) sorted by relevance

12345678910>>...27

/hardware/google/gfxstream/third-party/glm/include/glm/gtc/
Dmatrix_transform.hpp57 template <typename T, precision P>
58 GLM_FUNC_DECL tmat4x4<T, P> translate(
59 tmat4x4<T, P> const & m,
60 tvec3<T, P> const & v);
71 template <typename T, precision P>
72 GLM_FUNC_DECL tmat4x4<T, P> rotate(
73 tmat4x4<T, P> const & m,
74 T angle,
75 tvec3<T, P> const & axis);
85 template <typename T, precision P>
[all …]
Dquaternion.hpp33 template <typename T, precision P = defaultp>
38 typedef tquat<T, P> type;
39 typedef T value_type;
56 struct { T x, y, z, w;};
57 typename detail::storage<T, sizeof(T) * 4, detail::is_aligned<P>::value>::type data;
67 T x, y, z, w;
76 GLM_FUNC_DECL T & operator[](length_type i);
77 GLM_FUNC_DECL T const & operator[](length_type i) const;
82 GLM_FUNC_DECL GLM_CONSTEXPR tquat(tquat<T, P> const & q) GLM_DEFAULT;
84 GLM_FUNC_DECL GLM_CONSTEXPR tquat(tquat<T, Q> const & q);
[all …]
Dtype_ptr.hpp68 template<typename T>
69 GLM_FUNC_DECL tvec2<T, defaultp> make_vec2(T const * const ptr);
73 template<typename T>
74 GLM_FUNC_DECL tvec3<T, defaultp> make_vec3(T const * const ptr);
78 template<typename T>
79 GLM_FUNC_DECL tvec4<T, defaultp> make_vec4(T const * const ptr);
83 template<typename T>
84 GLM_FUNC_DECL tmat2x2<T, defaultp> make_mat2x2(T const * const ptr);
88 template<typename T>
89 GLM_FUNC_DECL tmat2x3<T, defaultp> make_mat2x3(T const * const ptr);
[all …]
Dmatrix_transform.inl10 template <typename T, precision P>
11 GLM_FUNC_QUALIFIER tmat4x4<T, P> translate(tmat4x4<T, P> const & m, tvec3<T, P> const & v) argument
13 tmat4x4<T, P> Result(m);
18 template <typename T, precision P>
19 GLM_FUNC_QUALIFIER tmat4x4<T, P> rotate(tmat4x4<T, P> const & m, T angle, tvec3<T, P> const & v) argument
21 T const a = angle;
22 T const c = cos(a);
23 T const s = sin(a);
25 tvec3<T, P> axis(normalize(v));
26 tvec3<T, P> temp((T(1) - c) * axis);
[all …]
/hardware/google/gfxstream/third-party/glm/include/glm/gtx/
Dextended_min_max.hpp30 template <typename T>
31 GLM_FUNC_DECL T min(
32 T const & x,
33 T const & y,
34 T const & z);
38 template <typename T, template <typename> class C>
39 GLM_FUNC_DECL C<T> min(
40 C<T> const & x,
41 typename C<T>::T const & y,
42 typename C<T>::T const & z);
[all …]
Deuler_angles.hpp30 template <typename T>
31 GLM_FUNC_DECL tmat4x4<T, defaultp> eulerAngleX(
32 T const & angleX);
36 template <typename T>
37 GLM_FUNC_DECL tmat4x4<T, defaultp> eulerAngleY(
38 T const & angleY);
42 template <typename T>
43 GLM_FUNC_DECL tmat4x4<T, defaultp> eulerAngleZ(
44 T const & angleZ);
48 template <typename T>
[all …]
Deuler_angles.inl8 template <typename T>
9 GLM_FUNC_QUALIFIER tmat4x4<T, defaultp> eulerAngleX
11 T const & angleX
14 T cosX = glm::cos(angleX);
15 T sinX = glm::sin(angleX);
17 return tmat4x4<T, defaultp>(
18 T(1), T(0), T(0), T(0),
19 T(0), cosX, sinX, T(0),
20 T(0),-sinX, cosX, T(0),
21 T(0), T(0), T(0), T(1));
[all …]
Dquaternion.hpp34 template<typename T, precision P>
35 GLM_FUNC_DECL tvec3<T, P> cross(
36 tquat<T, P> const & q,
37 tvec3<T, P> const & v);
42 template<typename T, precision P>
43 GLM_FUNC_DECL tvec3<T, P> cross(
44 tvec3<T, P> const & v,
45 tquat<T, P> const & q);
51 template<typename T, precision P>
52 GLM_FUNC_DECL tquat<T, P> squad(
[all …]
Drotate_vector.hpp36 template <typename T, precision P>
37 GLM_FUNC_DECL tvec3<T, P> slerp(
38 tvec3<T, P> const & x,
39 tvec3<T, P> const & y,
40 T const & a);
44 template <typename T, precision P>
45 GLM_FUNC_DECL tvec2<T, P> rotate(
46 tvec2<T, P> const & v,
47 T const & angle);
51 template <typename T, precision P>
[all …]
/hardware/google/gfxstream/third-party/glm/include/glm/detail/
D_noise.hpp14 template <typename T>
15 GLM_FUNC_QUALIFIER T mod289(T const & x) in mod289()
17 return x - floor(x * static_cast<T>(1.0) / static_cast<T>(289.0)) * static_cast<T>(289.0); in mod289()
20 template <typename T>
21 GLM_FUNC_QUALIFIER T permute(T const & x) in permute()
23 return mod289(((x * static_cast<T>(34)) + static_cast<T>(1)) * x); in permute()
26 template <typename T, precision P>
27 GLM_FUNC_QUALIFIER tvec2<T, P> permute(tvec2<T, P> const & x) in permute() argument
29 return mod289(((x * static_cast<T>(34)) + static_cast<T>(1)) * x); in permute()
32 template <typename T, precision P>
[all …]
Dtype_vec2.hpp18 template <typename T, precision P = defaultp>
23 typedef T value_type;
24 typedef tvec2<T, P> type;
30 T x, y;
45 struct{ T x, y; };
46 struct{ T r, g; };
47 struct{ T s, t; };
50 _GLM_SWIZZLE2_2_MEMBERS(T, P, glm::tvec2, x, y)
51 _GLM_SWIZZLE2_2_MEMBERS(T, P, glm::tvec2, r, g)
52 _GLM_SWIZZLE2_2_MEMBERS(T, P, glm::tvec2, s, t)
[all …]
Dtype_vec1.hpp19 template <typename T, precision P = defaultp>
24 typedef T value_type;
25 typedef tvec1<T, P> type;
31 T x;
46 T x;
47 T r;
48 T s;
70 union {T x, r, s;};
83 GLM_FUNC_DECL T & operator[](length_type i);
84 GLM_FUNC_DECL T const & operator[](length_type i) const;
[all …]
Dtype_vec3.hpp18 template <typename T, precision P = defaultp>
23 typedef T value_type;
24 typedef tvec3<T, P> type;
30 T x, y, z;
45 struct{ T x, y, z; };
46 struct{ T r, g, b; };
47 struct{ T s, t, p; };
50 _GLM_SWIZZLE3_2_MEMBERS(T, P, glm::tvec2, x, y, z)
51 _GLM_SWIZZLE3_2_MEMBERS(T, P, glm::tvec2, r, g, b)
52 _GLM_SWIZZLE3_2_MEMBERS(T, P, glm::tvec2, s, t, p)
[all …]
Dtype_mat4x4.hpp14 template <typename T, precision P = defaultp>
17 typedef tvec4<T, P> col_type;
18 typedef tvec4<T, P> row_type;
19 typedef tmat4x4<T, P> type;
20 typedef tmat4x4<T, P> transpose_type;
21 typedef T value_type;
30 GLM_FUNC_DECL tmat4x4(tmat4x4<T, P> const & m) GLM_DEFAULT;
32 GLM_FUNC_DECL tmat4x4(tmat4x4<T, Q> const & m);
35 GLM_FUNC_DECL explicit tmat4x4(T const & x);
37 T const & x0, T const & y0, T const & z0, T const & w0,
[all …]
Dtype_mat2x2.hpp14 template <typename T, precision P = defaultp>
17 typedef tvec2<T, P> col_type;
18 typedef tvec2<T, P> row_type;
19 typedef tmat2x2<T, P> type;
20 typedef tmat2x2<T, P> transpose_type;
21 typedef T value_type;
30 GLM_FUNC_DECL tmat2x2(tmat2x2<T, P> const & m) GLM_DEFAULT;
32 GLM_FUNC_DECL tmat2x2(tmat2x2<T, Q> const & m);
35 GLM_FUNC_DECL explicit tmat2x2(T scalar);
37 T const & x1, T const & y1,
[all …]
Dtype_mat3x3.hpp14 template <typename T, precision P = defaultp>
17 typedef tvec3<T, P> col_type;
18 typedef tvec3<T, P> row_type;
19 typedef tmat3x3<T, P> type;
20 typedef tmat3x3<T, P> transpose_type;
21 typedef T value_type;
30 GLM_FUNC_DECL tmat3x3(tmat3x3<T, P> const & m) GLM_DEFAULT;
32 GLM_FUNC_DECL tmat3x3(tmat3x3<T, Q> const & m);
35 GLM_FUNC_DECL explicit tmat3x3(T scalar);
37 T x0, T y0, T z0,
[all …]
Dtype_vec4.hpp18 template <typename T, precision P = defaultp>
23 typedef T value_type;
24 typedef tvec4<T, P> type;
30 T x, y, z, w;
45 struct { T x, y, z, w;};
46 struct { T r, g, b, a; };
47 struct { T s, t, p, q; };
49 typename detail::storage<T, sizeof(T) * 4, detail::is_aligned<P>::value>::type data;
52 _GLM_SWIZZLE4_2_MEMBERS(T, P, glm::tvec2, x, y, z, w)
53 _GLM_SWIZZLE4_2_MEMBERS(T, P, glm::tvec2, r, g, b, a)
[all …]
Dtype_mat3x4.hpp15 template <typename T, precision P = defaultp>
18 typedef tvec4<T, P> col_type;
19 typedef tvec3<T, P> row_type;
20 typedef tmat3x4<T, P> type;
21 typedef tmat4x3<T, P> transpose_type;
22 typedef T value_type;
31 GLM_FUNC_DECL tmat3x4(tmat3x4<T, P> const & m) GLM_DEFAULT;
33 GLM_FUNC_DECL tmat3x4(tmat3x4<T, Q> const & m);
36 GLM_FUNC_DECL explicit tmat3x4(T scalar);
38 T x0, T y0, T z0, T w0,
[all …]
Dtype_mat2x3.hpp15 template <typename T, precision P = defaultp>
18 typedef tvec3<T, P> col_type;
19 typedef tvec2<T, P> row_type;
20 typedef tmat2x3<T, P> type;
21 typedef tmat3x2<T, P> transpose_type;
22 typedef T value_type;
31 GLM_FUNC_DECL tmat2x3(tmat2x3<T, P> const & m) GLM_DEFAULT;
33 GLM_FUNC_DECL tmat2x3(tmat2x3<T, Q> const & m);
36 GLM_FUNC_DECL explicit tmat2x3(T scalar);
38 T x0, T y0, T z0,
[all …]
Dtype_mat2x4.hpp15 template <typename T, precision P = defaultp>
18 typedef tvec4<T, P> col_type;
19 typedef tvec2<T, P> row_type;
20 typedef tmat2x4<T, P> type;
21 typedef tmat4x2<T, P> transpose_type;
22 typedef T value_type;
31 GLM_FUNC_DECL tmat2x4(tmat2x4<T, P> const & m) GLM_DEFAULT;
33 GLM_FUNC_DECL tmat2x4(tmat2x4<T, Q> const & m);
36 GLM_FUNC_DECL explicit tmat2x4(T scalar);
38 T x0, T y0, T z0, T w0,
[all …]
Dtype_mat4x2.hpp15 template <typename T, precision P = defaultp>
18 typedef tvec2<T, P> col_type;
19 typedef tvec4<T, P> row_type;
20 typedef tmat4x2<T, P> type;
21 typedef tmat2x4<T, P> transpose_type;
22 typedef T value_type;
31 GLM_FUNC_DECL tmat4x2(tmat4x2<T, P> const & m) GLM_DEFAULT;
33 GLM_FUNC_DECL tmat4x2(tmat4x2<T, Q> const & m);
36 GLM_FUNC_DECL explicit tmat4x2(T scalar);
38 T x0, T y0,
[all …]
D_vectorize.hpp14 template <typename R, typename T, precision P, template <typename, precision> class vecType>
17 template <typename R, typename T, precision P>
18 struct functor1<R, T, P, tvec1>
20 GLM_FUNC_QUALIFIER static tvec1<R, P> call(R (*Func) (T x), tvec1<T, P> const & v) in call()
26 template <typename R, typename T, precision P>
27 struct functor1<R, T, P, tvec2>
29 GLM_FUNC_QUALIFIER static tvec2<R, P> call(R (*Func) (T x), tvec2<T, P> const & v) in call()
35 template <typename R, typename T, precision P>
36 struct functor1<R, T, P, tvec3>
38 GLM_FUNC_QUALIFIER static tvec3<R, P> call(R (*Func) (T x), tvec3<T, P> const & v) in call()
[all …]
Dtype_mat4x3.hpp15 template <typename T, precision P = defaultp>
18 typedef tvec3<T, P> col_type;
19 typedef tvec4<T, P> row_type;
20 typedef tmat4x3<T, P> type;
21 typedef tmat3x4<T, P> transpose_type;
22 typedef T value_type;
31 GLM_FUNC_DECL tmat4x3(tmat4x3<T, P> const & m) GLM_DEFAULT;
33 GLM_FUNC_DECL tmat4x3(tmat4x3<T, Q> const & m);
36 GLM_FUNC_DECL explicit tmat4x3(T const & x);
38 T const & x0, T const & y0, T const & z0,
[all …]
Dtype_mat3x2.hpp15 template <typename T, precision P = defaultp>
18 typedef tvec2<T, P> col_type;
19 typedef tvec3<T, P> row_type;
20 typedef tmat3x2<T, P> type;
21 typedef tmat2x3<T, P> transpose_type;
22 typedef T value_type;
31 GLM_FUNC_DECL tmat3x2(tmat3x2<T, P> const & m) GLM_DEFAULT;
33 GLM_FUNC_DECL tmat3x2(tmat3x2<T, Q> const & m);
36 GLM_FUNC_DECL explicit tmat3x2(T scalar);
38 T x0, T y0,
[all …]
Dtype_vec2.inl7 template <typename T, precision P>
8 const tvec2<T, P> tvec2<T, P>::ZERO(static_cast<T>(0), static_cast<T>(0));
10 template <typename T, precision P>
11 const tvec2<T, P> tvec2<T, P>::X(static_cast<T>(1), static_cast<T>(0));
13 template <typename T, precision P>
14 const tvec2<T, P> tvec2<T, P>::Y(static_cast<T>(0), static_cast<T>(1));
16 template <typename T, precision P>
17 const tvec2<T, P> tvec2<T, P>::XY(static_cast<T>(1), static_cast<T>(1));
22 template <typename T, precision P>
23 GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tvec2<T, P>::tvec2()
[all …]

12345678910>>...27