Searched refs:vec2 (Results 1 - 15 of 15) sorted by relevance

/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/
H A Dnumeric.h67 static inline vec2i Round(const vec2& v) {
83 static inline vec2 MapPoint(const vec2& pt, const R1& from, const R2& to) {
84 vec2 normalized((pt - vec2(from.p1)).array() / vec2(from.GetSize()).array());
85 return (normalized * vec2(to.GetSize())) + vec2(to.p1);
152 inline mat3 ScaleMatrix(const vec2& scale_xy) {
156 inline mat3 TranslationMatrix(const vec2
[all...]
H A Dtypes.h24 using vec2 = vec2f;
/frameworks/native/services/surfaceflinger/
H A DTransform.h25 #include <math/vec2.h>
79 vec2 transform(int x, int y) const;
85 vec2 transform(const vec2& v) const;
H A DTransform.cpp172 vec2 Transform::transform(const vec2& v) const {
173 vec2 r;
189 vec2 Transform::transform(int x, int y) const
191 return transform(vec2(x,y));
202 vec2 lt( bounds.left, bounds.top );
203 vec2 rt( bounds.right, bounds.top );
204 vec2 lb( bounds.left, bounds.bottom );
205 vec2 rb( bounds.right, bounds.bottom );
332 vec2
[all...]
H A DLayer.cpp1193 Mesh::VertexArray<vec2> texCoords(mMesh.getTexCoordArray<vec2>());
1194 texCoords[0] = vec2(left, 1.0f - top);
1195 texCoords[1] = vec2(left, 1.0f - bottom);
1196 texCoords[2] = vec2(right, 1.0f - bottom);
1197 texCoords[3] = vec2(right, 1.0f - top);
1365 static void boundPoint(vec2* point, const Rect& crop) {
1388 vec2 lt = vec2(win.left, win.top);
1389 vec2 l
[all...]
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
H A DQuaternion.java55 double[] vec2 = normal(v2);
56 double[] axis = normal(cross(vec1, vec2));
57 double angle = Math.acos(dot(vec1, vec2));
63 double[] vec2 = normal(v2);
64 return Math.acos(Math.min(dot(vec1, vec2), 1));
69 double[] vec2 = normal(v2);
70 return normal(cross(vec1, vec2));
/frameworks/native/libs/math/tests/
H A Dmat_test.cpp303 mat2 m2(vec2(2));
314 mat2 m2(vec2(2));
337 EXPECT_EQ(mat2(vec2(-1, 0),
338 vec2(0, -1)), m0);
349 mat2 m1(vec2(1, 2), vec2(3, 4));
350 mat2 m2(vec2(1, 3), vec2(2, 4));
353 EXPECT_EQ(vec2(1, 4), diag(m1));
H A Dvec_test.cpp37 EXPECT_EQ(sizeof(vec2), sizeof(float)*2);
/frameworks/native/libs/math/include/math/
H A Dvec2.h112 typedef details::TVec2<float> vec2;
H A Dvec3.h19 #include <math/vec2.h>
H A Dmat2.h20 #include <math/vec2.h>
39 * Conceptually a 2x2 matrix is a an array of 2 column vec2:
68 * m[n] is the \f$ n^{th} \f$ column of the matrix and is a vec2.
/frameworks/native/services/surfaceflinger/RenderEngine/
H A DRenderEngine.cpp205 Mesh::VertexArray<vec2> position(mesh.getPositionArray<vec2>());
/frameworks/native/include/ui/
H A DColorSpace.h28 #include <math/vec2.h>
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Dvlc_encode.cpp2544 Int vec1, vec2, vec3; local
2571 vec2 = 3 ;
2583 vec2 = 3 ;
2595 vec2 = 4 ;
2607 vec2 = 1 ;
2619 vec2 = 1 ;
2693 p2x = motdata[yin2*nMBPerRow+xin2][vec2].x;
2694 p2y = motdata[yin2*nMBPerRow+xin2][vec2].y;
2695 //p2x = motxdata[xin2*2+(vec2&0x1) + (yin2*2+(vec2>>
[all...]
/frameworks/native/services/surfaceflinger/tests/hwc2/
H A DHwc2TestBuffer.cpp232 static const std::array<vec2, 4> triangles = {{

Completed in 330 milliseconds