Home
last modified time | relevance | path

Searched refs:P (Results 1 – 25 of 256) sorted by relevance

1234567891011

/hardware/google/gfxstream/third-party/glm/include/glm/detail/
Dtype_vec2.hpp18 template <typename T, precision P = defaultp>
24 typedef tvec2<T, P> type;
25 typedef tvec2<bool, P> bool_type;
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)
53 _GLM_SWIZZLE2_3_MEMBERS(T, P, glm::tvec3, x, y)
54 _GLM_SWIZZLE2_3_MEMBERS(T, P, glm::tvec3, r, g)
55 _GLM_SWIZZLE2_3_MEMBERS(T, P, glm::tvec3, s, t)
56 _GLM_SWIZZLE2_4_MEMBERS(T, P, glm::tvec4, x, y)
[all …]
Dtype_vec3.hpp18 template <typename T, precision P = defaultp>
24 typedef tvec3<T, P> type;
25 typedef tvec3<bool, P> bool_type;
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)
53 _GLM_SWIZZLE3_3_MEMBERS(T, P, glm::tvec3, x, y, z)
54 _GLM_SWIZZLE3_3_MEMBERS(T, P, glm::tvec3, r, g, b)
55 _GLM_SWIZZLE3_3_MEMBERS(T, P, glm::tvec3, s, t, p)
56 _GLM_SWIZZLE3_4_MEMBERS(T, P, glm::tvec4, x, y, z)
[all …]
Dtype_vec1.hpp19 template <typename T, precision P = defaultp>
25 typedef tvec1<T, P> type;
26 typedef tvec1<bool, P> bool_type;
89 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR tvec1(tvec1<T, P> const & v) GLM_DEFAULT;
126 GLM_FUNC_DECL tvec1<T, P> & operator=(tvec1<T, P> const & v) GLM_DEFAULT;
129 GLM_FUNC_DECL tvec1<T, P> & operator=(tvec1<U, P> const & v);
131 GLM_FUNC_DECL tvec1<T, P> & operator+=(U scalar);
133 GLM_FUNC_DECL tvec1<T, P> & operator+=(tvec1<U, P> const & v);
135 GLM_FUNC_DECL tvec1<T, P> & operator-=(U scalar);
137 GLM_FUNC_DECL tvec1<T, P> & operator-=(tvec1<U, P> const & v);
[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;
30 GLM_FUNC_DECL tmat2x2(tmat2x2<T, P> const & m) GLM_DEFAULT;
52 tvec2<U, P> const & v1,
53 tvec2<V, P> const & v2);
60 GLM_FUNC_DECL GLM_EXPLICIT tmat2x2(tmat3x3<T, P> const & x);
61 GLM_FUNC_DECL GLM_EXPLICIT tmat2x2(tmat4x4<T, P> const & x);
[all …]
Dtype_vec4.hpp18 template <typename T, precision P = defaultp>
24 typedef tvec4<T, P> type;
25 typedef tvec4<bool, P> bool_type;
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)
54 _GLM_SWIZZLE4_2_MEMBERS(T, P, glm::tvec2, s, t, p, q)
55 _GLM_SWIZZLE4_3_MEMBERS(T, P, glm::tvec3, x, y, z, w)
56 _GLM_SWIZZLE4_3_MEMBERS(T, P, glm::tvec3, r, g, b, a)
57 _GLM_SWIZZLE4_3_MEMBERS(T, P, glm::tvec3, s, t, p, q)
[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;
30 GLM_FUNC_DECL tmat4x4(tmat4x4<T, P> const & m) GLM_DEFAULT;
62 tvec4<V1, P> const & v1,
63 tvec4<V2, P> const & v2,
64 tvec4<V3, P> const & v3,
65 tvec4<V4, P> const & v4);
[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;
30 GLM_FUNC_DECL tmat3x3(tmat3x3<T, P> const & m) GLM_DEFAULT;
58 tvec3<V1, P> const & v1,
59 tvec3<V2, P> const & v2,
60 tvec3<V3, P> const & v3);
67 GLM_FUNC_DECL GLM_EXPLICIT tmat3x3(tmat2x2<T, P> const & x);
[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;
31 GLM_FUNC_DECL tmat2x3(tmat2x3<T, P> const & m) GLM_DEFAULT;
53 tvec3<U, P> const & v1,
54 tvec3<V, P> const & v2);
61 GLM_FUNC_DECL GLM_EXPLICIT tmat2x3(tmat2x2<T, P> const & x);
62 GLM_FUNC_DECL GLM_EXPLICIT tmat2x3(tmat3x3<T, P> const & x);
[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;
31 GLM_FUNC_DECL tmat4x2(tmat4x2<T, P> const & m) GLM_DEFAULT;
63 tvec2<V1, P> const & v1,
64 tvec2<V2, P> const & v2,
65 tvec2<V3, P> const & v3,
66 tvec2<V4, P> const & v4);
[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;
31 GLM_FUNC_DECL tmat3x4(tmat3x4<T, P> const & m) GLM_DEFAULT;
59 tvec4<V1, P> const & v1,
60 tvec4<V2, P> const & v2,
61 tvec4<V3, P> const & v3);
68 GLM_FUNC_DECL GLM_EXPLICIT tmat3x4(tmat2x2<T, P> const & x);
[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;
31 GLM_FUNC_DECL tmat3x2(tmat3x2<T, P> const & m) GLM_DEFAULT;
59 tvec2<V1, P> const & v1,
60 tvec2<V2, P> const & v2,
61 tvec2<V3, P> const & v3);
68 GLM_FUNC_DECL GLM_EXPLICIT tmat3x2(tmat2x2<T, P> const & x);
[all …]
Dfunc_common.hpp32 template <typename T, precision P, template <typename, precision> class vecType>
33 GLM_FUNC_DECL vecType<T, P> abs(vecType<T, P> const & x);
41 template <typename T, precision P, template <typename, precision> class vecType>
42 GLM_FUNC_DECL vecType<T, P> sign(vecType<T, P> const & x);
50 template <typename T, precision P, template <typename, precision> class vecType>
51 GLM_FUNC_DECL vecType<T, P> floor(vecType<T, P> const & x);
60 template <typename T, precision P, template <typename, precision> class vecType>
61 GLM_FUNC_DECL vecType<T, P> trunc(vecType<T, P> const & x);
73 template <typename T, precision P, template <typename, precision> class vecType>
74 GLM_FUNC_DECL vecType<T, P> round(vecType<T, P> const & x);
[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;
31 GLM_FUNC_DECL tmat2x4(tmat2x4<T, P> const & m) GLM_DEFAULT;
55 tvec4<U, P> const & v1,
56 tvec4<V, P> const & v2);
63 GLM_FUNC_DECL GLM_EXPLICIT tmat2x4(tmat2x2<T, P> const & x);
64 GLM_FUNC_DECL GLM_EXPLICIT tmat2x4(tmat3x3<T, P> const & x);
[all …]
Dtype_vec1.inl9 template <typename T, precision P>
10 GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tvec1<T, P>::tvec1()
18 template <typename T, precision P>
19 GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tvec1<T, P>::tvec1(tvec1<T, P> const & v)
24 template <typename T, precision P>
26 GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tvec1<T, P>::tvec1(tvec1<T, Q> const & v)
32 template <typename T, precision P>
33 GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tvec1<T, P>::tvec1(ctor)
36 template <typename T, precision P>
37 GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tvec1<T, P>::tvec1(T scalar)
[all …]
Dtype_vec4.inl37 template <typename T, precision P, bool Aligned>
40 GLM_FUNC_QUALIFIER static tvec4<T, P> call(tvec4<T, P> const & a, tvec4<T, P> const & b)
42 return tvec4<T, P>(a.x + b.x, a.y + b.y, a.z + b.z, a.w + b.w);
46 template <typename T, precision P, bool Aligned>
49 GLM_FUNC_QUALIFIER static tvec4<T, P> call(tvec4<T, P> const & a, tvec4<T, P> const & b)
51 return tvec4<T, P>(a.x - b.x, a.y - b.y, a.z - b.z, a.w - b.w);
55 template <typename T, precision P, bool Aligned>
58 GLM_FUNC_QUALIFIER static tvec4<T, P> call(tvec4<T, P> const & a, tvec4<T, P> const & b)
60 return tvec4<T, P>(a.x * b.x, a.y * b.y, a.z * b.z, a.w * b.w);
64 template <typename T, precision P, bool Aligned>
[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;
31 GLM_FUNC_DECL tmat4x3(tmat4x3<T, P> const & m) GLM_DEFAULT;
63 tvec3<V1, P> const & v1,
64 tvec3<V2, P> const & v2,
65 tvec3<V3, P> const & v3,
66 tvec3<V4, P> const & v4);
[all …]
Dfunc_matrix.hpp37 template <typename T, precision P>
38 struct outerProduct_trait<T, P, tvec2, tvec2>
40 typedef tmat2x2<T, P> type;
43 template <typename T, precision P>
44 struct outerProduct_trait<T, P, tvec2, tvec3>
46 typedef tmat3x2<T, P> type;
49 template <typename T, precision P>
50 struct outerProduct_trait<T, P, tvec2, tvec4>
52 typedef tmat4x2<T, P> type;
55 template <typename T, precision P>
[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 …]
Dfunc_trigonometric.hpp31 template <typename T, precision P, template <typename, precision> class vecType>
32 GLM_FUNC_DECL GLM_CONSTEXPR vecType<T, P> radians(vecType<T, P> const & degrees);
40 template <typename T, precision P, template <typename, precision> class vecType>
41 GLM_FUNC_DECL GLM_CONSTEXPR vecType<T, P> degrees(vecType<T, P> const & radians);
50 template <typename T, precision P, template <typename, precision> class vecType>
51 GLM_FUNC_DECL vecType<T, P> sin(vecType<T, P> const & angle);
60 template <typename T, precision P, template <typename, precision> class vecType>
61 GLM_FUNC_DECL vecType<T, P> cos(vecType<T, P> const & angle);
69 template <typename T, precision P, template <typename, precision> class vecType>
70 GLM_FUNC_DECL vecType<T, P> tan(vecType<T, P> const & angle);
[all …]
Dtype_mat2x2.inl11 template <typename T, precision P>
12 GLM_FUNC_QUALIFIER tmat2x2<T, P>::tmat2x2()
22 template <typename T, precision P>
23 GLM_FUNC_QUALIFIER tmat2x2<T, P>::tmat2x2(tmat2x2<T, P> const & m)
30 template <typename T, precision P>
32 GLM_FUNC_QUALIFIER tmat2x2<T, P>::tmat2x2(tmat2x2<T, Q> const & m)
38 template <typename T, precision P>
39 GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tmat2x2<T, P>::tmat2x2(ctor)
42 template <typename T, precision P>
43 GLM_FUNC_QUALIFIER tmat2x2<T, P>::tmat2x2(T scalar)
[all …]
/hardware/google/gfxstream/third-party/glm/include/glm/gtc/
Dquaternion.hpp33 template <typename T, precision P = defaultp>
38 typedef tquat<T, P> type;
57 typename detail::storage<T, sizeof(T) * 4, detail::is_aligned<P>::value>::type data;
82 GLM_FUNC_DECL GLM_CONSTEXPR tquat(tquat<T, P> const & q) GLM_DEFAULT;
89 GLM_FUNC_DECL GLM_CONSTEXPR tquat(T const & s, tvec3<T, P> const & v);
99 GLM_FUNC_DECL explicit operator tmat3x3<T, P>();
100 GLM_FUNC_DECL explicit operator tmat4x4<T, P>();
109 GLM_FUNC_DECL tquat(tvec3<T, P> const & u, tvec3<T, P> const & v);
112 GLM_FUNC_DECL GLM_EXPLICIT tquat(tvec3<T, P> const & eulerAngles);
113 GLM_FUNC_DECL GLM_EXPLICIT tquat(tmat3x3<T, P> const & m);
[all …]
/hardware/google/gfxstream/third-party/glm/include/glm/gtx/
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 …]
Dmatrix_major_storage.hpp30 template <typename T, precision P>
31 GLM_FUNC_DECL tmat2x2<T, P> rowMajor2(
32 tvec2<T, P> const & v1,
33 tvec2<T, P> const & v2);
37 template <typename T, precision P>
38 GLM_FUNC_DECL tmat2x2<T, P> rowMajor2(
39 tmat2x2<T, P> const & m);
43 template <typename T, precision P>
44 GLM_FUNC_DECL tmat3x3<T, P> rowMajor3(
45 tvec3<T, P> const & v1,
[all …]
Ddual_quaternion.hpp33 template <typename T, precision P = defaultp>
39 typedef glm::tquat<T, P> part_type;
43 glm::tquat<T, P> real, dual;
57 GLM_FUNC_DECL GLM_CONSTEXPR tdualquat(tdualquat<T, P> const & d) GLM_DEFAULT;
64 GLM_FUNC_DECL GLM_CONSTEXPR tdualquat(tquat<T, P> const & real);
65 …GLM_FUNC_DECL GLM_CONSTEXPR tdualquat(tquat<T, P> const & orientation, tvec3<T, P> const & transla…
66 GLM_FUNC_DECL GLM_CONSTEXPR tdualquat(tquat<T, P> const & real, tquat<T, P> const & dual);
73 GLM_FUNC_DECL GLM_EXPLICIT tdualquat(tmat2x4<T, P> const & holder_mat);
74 GLM_FUNC_DECL GLM_EXPLICIT tdualquat(tmat3x4<T, P> const & aug_mat);
78 GLM_FUNC_DECL tdualquat<T, P> & operator=(tdualquat<T, P> const & m) GLM_DEFAULT;
[all …]
Dassociated_min_max.hpp29 template<typename T, typename U, precision P>
34 template<typename T, typename U, precision P, template <typename, precision> class vecType>
35 GLM_FUNC_DECL tvec2<U, P> associatedMin(
36 vecType<T, P> const & x, vecType<U, P> const & a,
37 vecType<T, P> const & y, vecType<U, P> const & b);
41 template<typename T, typename U, precision P, template <typename, precision> class vecType>
42 GLM_FUNC_DECL vecType<U, P> associatedMin(
43 T x, const vecType<U, P>& a,
44 T y, const vecType<U, P>& b);
48 template<typename T, typename U, precision P, template <typename, precision> class vecType>
[all …]

1234567891011