Home
last modified time | relevance | path

Searched refs:tvec3 (Results 1 – 25 of 101) sorted by relevance

12345

/external/oboe/samples/RhythmGame/third_party/glm/detail/
Dtype_vec3.hpp19 struct tvec3 struct
24 typedef tvec3<T, P> type; argument
25 typedef tvec3<bool, P> bool_type; argument
53 _GLM_SWIZZLE3_3_MEMBERS(T, P, glm::tvec3, x, y, z) argument
54 _GLM_SWIZZLE3_3_MEMBERS(T, P, glm::tvec3, r, g, b)
55 _GLM_SWIZZLE3_3_MEMBERS(T, P, glm::tvec3, s, t, p)
74 GLM_SWIZZLE_GEN_VEC_FROM_VEC3(T, P, tvec3, tvec2, tvec3, tvec4)
89 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR tvec3() GLM_DEFAULT_CTOR;
90 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR tvec3(tvec3<T, P> const & v) GLM_DEFAULT;
92 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR tvec3(tvec3<T, Q> const & v);
[all …]
Dtype_vec3.inl9 const tvec3<T, P> tvec3<T, P>::ZERO(static_cast<T>(0), static_cast<T>(0), static_cast<T>(0));
12 const tvec3<T, P> tvec3<T, P>::X(static_cast<T>(1), static_cast<T>(0), static_cast<T>(0));
15 const tvec3<T, P> tvec3<T, P>::Y(static_cast<T>(0), static_cast<T>(1), static_cast<T>(0));
18 const tvec3<T, P> tvec3<T, P>::Z(static_cast<T>(0), static_cast<T>(0), static_cast<T>(1));
21 const tvec3<T, P> tvec3<T, P>::XY(static_cast<T>(1), static_cast<T>(1), static_cast<T>(0));
24 const tvec3<T, P> tvec3<T, P>::XZ(static_cast<T>(1), static_cast<T>(0), static_cast<T>(1));
27 const tvec3<T, P> tvec3<T, P>::YZ(static_cast<T>(0), static_cast<T>(1), static_cast<T>(1));
30 const tvec3<T, P> tvec3<T, P>::XYZ(static_cast<T>(1), static_cast<T>(1), static_cast<T>(1));
36 GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tvec3<T, P>::tvec3() function in glm::tvec3
45 GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tvec3<T, P>::tvec3(tvec3<T, P> const & v) function in glm::tvec3
[all …]
Dglm.cpp79 template struct tvec3<uint8, lowp>; variable
80 template struct tvec3<uint16, lowp>; variable
81 template struct tvec3<uint32, lowp>; variable
82 template struct tvec3<uint64, lowp>; variable
83 template struct tvec3<int8, lowp>; variable
84 template struct tvec3<int16, lowp>; variable
85 template struct tvec3<int32, lowp>; variable
86 template struct tvec3<int64, lowp>; variable
87 template struct tvec3<float32, lowp>; variable
88 template struct tvec3<float64, lowp>; variable
[all …]
Dtype_vec.hpp106 template <typename T, precision P> struct tvec3;
243 typedef tvec3<float, highp> highp_vec3;
250 typedef tvec3<float, mediump> mediump_vec3;
257 typedef tvec3<float, lowp> lowp_vec3;
264 typedef tvec3<double, highp> highp_dvec3;
271 typedef tvec3<double, mediump> mediump_dvec3;
278 typedef tvec3<double, lowp> lowp_dvec3;
285 typedef tvec3<int, highp> highp_ivec3;
292 typedef tvec3<int, mediump> mediump_ivec3;
299 typedef tvec3<int, lowp> lowp_ivec3;
[all …]
D_vectorize.hpp36 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()
40 return tvec3<R, P>(Func(v.x), Func(v.y), Func(v.z)); in call()
75 struct functor2<T, P, tvec3>
77 …GLM_FUNC_QUALIFIER static tvec3<T, P> call(T (*Func) (T x, T y), tvec3<T, P> const & a, tvec3<T, P… in call()
79 return tvec3<T, P>(Func(a.x, b.x), Func(a.y, b.y), Func(a.z, b.z)); in call()
114 struct functor2_vec_sca<T, P, tvec3>
116 GLM_FUNC_QUALIFIER static tvec3<T, P> call(T (*Func) (T x, T y), tvec3<T, P> const & a, T b) in call()
118 return tvec3<T, P>(Func(a.x, b), Func(a.y, b), Func(a.z, b)); in call()
/external/oboe/samples/RhythmGame/third_party/glm/gtc/
Dcolor_encoding.inl7 GLM_FUNC_QUALIFIER tvec3<T, P> convertLinearSRGBToD65XYZ(tvec3<T, P> const& ColorLinearSRGB)
9 tvec3<T, P> const M(0.490f, 0.17697f, 0.2f);
10 tvec3<T, P> const N(0.31f, 0.8124f, 0.01063f);
11 tvec3<T, P> const O(0.490f, 0.01f, 0.99f);
17 GLM_FUNC_QUALIFIER tvec3<T, P> convertD65XYZToLinearSRGB(tvec3<T, P> const& ColorD65XYZ)
19 tvec3<T, P> const M(0.41847f, -0.091169f, 0.0009209f);
20 tvec3<T, P> const N(-0.15866f, 0.25243f, 0.015708f);
21 tvec3<T, P> const O(0.0009209f, -0.0025498f, 0.1786f);
27 GLM_FUNC_QUALIFIER tvec3<T, P> convertLinearSRGBToD50XYZ(tvec3<T, P> const& ColorLinearSRGB)
29 tvec3<T, P> const M(0.436030342570117f, 0.222438466210245f, 0.013897440074263f);
[all …]
Dtype_aligned.hpp30 template <typename T, precision P> struct tvec3;
135 typedef tvec3<float, aligned_highp> aligned_highp_vec3;
139 typedef tvec3<float, aligned_mediump> aligned_mediump_vec3;
143 typedef tvec3<float, aligned_lowp> aligned_lowp_vec3;
147 typedef tvec3<double, aligned_highp> aligned_highp_dvec3;
151 typedef tvec3<double, aligned_mediump> aligned_mediump_dvec3;
155 typedef tvec3<double, aligned_lowp> aligned_lowp_dvec3;
159 typedef tvec3<int, aligned_highp> aligned_highp_ivec3;
163 typedef tvec3<int, aligned_mediump> aligned_mediump_ivec3;
167 typedef tvec3<int, aligned_lowp> aligned_lowp_ivec3;
[all …]
Dmatrix_transform.hpp60 tvec3<T, P> const & v);
75 tvec3<T, P> const & axis);
88 tvec3<T, P> const & v);
386 GLM_FUNC_DECL tvec3<T, P> project(
387 tvec3<T, P> const & obj,
403 GLM_FUNC_DECL tvec3<T, P> unProject(
404 tvec3<T, P> const & win,
432 tvec3<T, P> const & eye,
433 tvec3<T, P> const & center,
434 tvec3<T, P> const & up);
[all …]
Dnoise.inl15 tvec3<T, P> pXYZ = floor(fract(tvec3<T, P>(j) * tvec3<T, P>(ip)) * T(7)) * ip[2] - T(1);
16 T pW = static_cast<T>(1.5) - dot(abs(pXYZ), tvec3<T, P>(1));
18 pXYZ = pXYZ + (tvec3<T, P>(s) * T(2) - T(1)) * s.w;
66 GLM_FUNC_QUALIFIER T perlin(tvec3<T, P> const & Position)
68 tvec3<T, P> Pi0 = floor(Position); // Integer part for indexing
69 tvec3<T, P> Pi1 = Pi0 + T(1); // Integer part + 1
72 tvec3<T, P> Pf0 = fract(Position); // Fractional part for interpolation
73 tvec3<T, P> Pf1 = Pf0 - T(1); // Fractional part - 1.0
99 tvec3<T, P> g000(gx0.x, gy0.x, gz0.x);
100 tvec3<T, P> g100(gx0.y, gy0.y, gz0.y);
[all …]
/external/oboe/samples/RhythmGame/third_party/glm/gtx/
Dcolor_space_YCoCg.inl7 GLM_FUNC_QUALIFIER tvec3<T, P> rgb2YCoCg
9 tvec3<T, P> const & rgbColor
12 tvec3<T, P> result;
20 GLM_FUNC_QUALIFIER tvec3<T, P> YCoCg2rgb
22 tvec3<T, P> const & YCoCgColor
25 tvec3<T, P> result;
35 static GLM_FUNC_QUALIFIER tvec3<T, P> rgb2YCoCgR
37 tvec3<T, P> const & rgbColor
40 tvec3<T, P> result;
47 static GLM_FUNC_QUALIFIER tvec3<T, P> YCoCgR2rgb
[all …]
Drotate_vector.hpp37 GLM_FUNC_DECL tvec3<T, P> slerp(
38 tvec3<T, P> const & x,
39 tvec3<T, P> const & y,
52 GLM_FUNC_DECL tvec3<T, P> rotate(
53 tvec3<T, P> const & v,
55 tvec3<T, P> const & normal);
63 tvec3<T, P> const & normal);
68 GLM_FUNC_DECL tvec3<T, P> rotateX(
69 tvec3<T, P> const & v,
75 GLM_FUNC_DECL tvec3<T, P> rotateY(
[all …]
Dcolor_space_YCoCg.hpp30 GLM_FUNC_DECL tvec3<T, P> rgb2YCoCg(
31 tvec3<T, P> const & rgbColor);
36 GLM_FUNC_DECL tvec3<T, P> YCoCg2rgb(
37 tvec3<T, P> const & YCoCgColor);
43 GLM_FUNC_DECL tvec3<T, P> rgb2YCoCgR(
44 tvec3<T, P> const & rgbColor);
50 GLM_FUNC_DECL tvec3<T, P> YCoCgR2rgb(
51 tvec3<T, P> const & YCoCgColor);
Dnorm.hpp46 tvec3<T, P> const & x,
47 tvec3<T, P> const & y);
53 tvec3<T, P> const & v);
59 tvec3<T, P> const & x,
60 tvec3<T, P> const & y);
66 tvec3<T, P> const & x);
72 tvec3<T, P> const & x,
73 tvec3<T, P> const & y,
80 tvec3<T, P> const & x,
Drotate_vector.inl7 GLM_FUNC_QUALIFIER tvec3<T, P> slerp
9 tvec3<T, P> const & x,
10 tvec3<T, P> const & y,
45 GLM_FUNC_QUALIFIER tvec3<T, P> rotate
47 tvec3<T, P> const & v,
49 tvec3<T, P> const & normal
56 GLM_FUNC_QUALIFIER tvec3<T, P> rotateGTX(
57 const tvec3<T, P>& x,
59 const tvec3<T, P>& normal)
71 tvec3<T, P> const & normal
[all …]
Dcompatibility.hpp41 …plate <typename T, precision P> GLM_FUNC_QUALIFIER tvec3<T, P> lerp(const tvec3<T, P>& x, const tv… in lerp()
44 …name T, precision P> GLM_FUNC_QUALIFIER tvec3<T, P> lerp(const tvec3<T, P>& x, const tvec3<T, P>& … in lerp()
49 …template <typename T, precision P> GLM_FUNC_QUALIFIER tvec3<T, P> saturate(const tvec3<T, P>& x){r… in saturate()
54 …plate <typename T, precision P> GLM_FUNC_QUALIFIER tvec3<T, P> atan2(const tvec3<T, P>& x, const t… in atan2()
60 …template <typename T, precision P> GLM_FUNC_DECL tvec3<bool, P> isfinite(const tvec3<T, P>& x); …
65 …typedef tvec3<bool, highp> bool3; //!< \brief boolean type with 3 components. (From GLM_GTX_co…
81 …typedef tvec3<int, highp> int3; //!< \brief integer vector with 3 components. (From GLM_GTX_co…
97 …typedef tvec3<float, highp> float3; //!< \brief single-precision floating-point vector with 3 c…
113 …typedef tvec3<double, highp> double3; //!< \brief double-precision floating-point vector with 3 …
Dcolor_space.inl7 GLM_FUNC_QUALIFIER tvec3<T, P> rgbColor(const tvec3<T, P>& hsvColor)
9 tvec3<T, P> hsv = hsvColor;
10 tvec3<T, P> rgbColor;
14 rgbColor = tvec3<T, P>(hsv.z);
64 GLM_FUNC_QUALIFIER tvec3<T, P> hsvColor(const tvec3<T, P>& rgbColor)
66 tvec3<T, P> hsv = rgbColor;
106 tvec3<T, defaultp> rgbw = tvec3<T, defaultp>(T(0.2126), T(0.7152), T(0.0722));
108 tvec3<T, defaultp> const col((T(1) - s) * rgbw);
124 GLM_FUNC_QUALIFIER tvec3<T, P> saturation(const T s, const tvec3<T, P>& color)
126 return tvec3<T, P>(saturation(s) * tvec4<T, P>(color, T(0)));
[all …]
Dcolor_space.hpp30 GLM_FUNC_DECL tvec3<T, P> rgbColor(
31 tvec3<T, P> const & hsvValue);
36 GLM_FUNC_DECL tvec3<T, P> hsvColor(
37 tvec3<T, P> const & rgbValue);
48 GLM_FUNC_DECL tvec3<T, P> saturation(
50 tvec3<T, P> const & color);
63 tvec3<T, P> const & color);
Dhanded_coordinate_space.hpp31 tvec3<T, P> const & tangent,
32 tvec3<T, P> const & binormal,
33 tvec3<T, P> const & normal);
39 tvec3<T, P> const & tangent,
40 tvec3<T, P> const & binormal,
41 tvec3<T, P> const & normal);
Dhanded_coordinate_space.inl9 tvec3<T, P> const & tangent,
10 tvec3<T, P> const & binormal,
11 tvec3<T, P> const & normal
20 tvec3<T, P> const & tangent,
21 tvec3<T, P> const & binormal,
22 tvec3<T, P> const & normal
Dpolar_coordinates.inl7 GLM_FUNC_QUALIFIER tvec3<T, P> polar
9 tvec3<T, P> const & euclidean
13 tvec3<T, P> const tmp(euclidean / Length);
16 return tvec3<T, P>(
23 GLM_FUNC_QUALIFIER tvec3<T, P> euclidean
31 return tvec3<T, P>(
Dvector_query.inl17 …return length(cross(tvec3<T, P>(v0, static_cast<T>(0)), tvec3<T, P>(v1, static_cast<T>(0)))) < eps…
22 struct compute_areCollinear<T, P, tvec3>
24 …GLM_FUNC_QUALIFIER static bool call(tvec3<T, P> const & v0, tvec3<T, P> const & v1, T const & epsi…
35 return length(cross(tvec3<T, P>(v0), tvec3<T, P>(v1))) < epsilon;
54 struct compute_isCompNull<T, P, tvec3>
56 GLM_FUNC_QUALIFIER static tvec3<bool, P> call(tvec3<T, P> const & v, T const & epsilon)
58 return tvec3<bool, P>(
156 GLM_FUNC_QUALIFIER tvec3<bool, P> isCompNull
158 tvec3<T, P> const & v,
162 return tvec3<bool, P>(
Dnormal.hpp31 GLM_FUNC_DECL tvec3<T, P> triangleNormal(
32 tvec3<T, P> const & p1,
33 tvec3<T, P> const & p2,
34 tvec3<T, P> const & p3);
Dclosest_point.inl7 GLM_FUNC_QUALIFIER tvec3<T, P> closestPointOnLine
9 tvec3<T, P> const & point,
10 tvec3<T, P> const & a,
11 tvec3<T, P> const & b
15 tvec3<T, P> Vector = point - a;
16 tvec3<T, P> LineDirection = (b - a) / LineLength;
Dquaternion.hpp35 GLM_FUNC_DECL tvec3<T, P> cross(
37 tvec3<T, P> const & v);
43 GLM_FUNC_DECL tvec3<T, P> cross(
44 tvec3<T, P> const & v,
101 GLM_FUNC_DECL tvec3<T, P> rotate(
103 tvec3<T, P> const & v);
173 tvec3<T, P> const & orig,
174 tvec3<T, P> const & dest);
/external/oboe/samples/RhythmGame/third_party/glm/
Dfwd.hpp311 typedef tvec3<i8, lowp> lowp_i8vec3;
328 typedef tvec3<i8, mediump> mediump_i8vec3;
345 typedef tvec3<i8, highp> highp_i8vec3;
390 typedef tvec3<i16, lowp> lowp_i16vec3;
407 typedef tvec3<i16, mediump> mediump_i16vec3;
424 typedef tvec3<i16, highp> highp_i16vec3;
470 typedef tvec3<i32, lowp> lowp_i32vec3;
487 typedef tvec3<i32, mediump> mediump_i32vec3;
504 typedef tvec3<i32, highp> highp_i32vec3;
549 typedef tvec3<i32, lowp> lowp_i32vec3;
[all …]

12345