Home
last modified time | relevance | path

Searched refs:vec2 (Results 1 – 18 of 18) sorted by relevance

/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/
Dnumeric.h67 static inline vec2i Round(const vec2& v) { in Round()
83 static inline vec2 MapPoint(const vec2& pt, const R1& from, const R2& to) { in MapPoint()
84 vec2 normalized((pt - vec2(from.p1)).array() / vec2(from.GetSize()).array()); in MapPoint()
85 return (normalized * vec2(to.GetSize())) + vec2(to.p1); in MapPoint()
152 inline mat3 ScaleMatrix(const vec2& scale_xy) { in ScaleMatrix()
156 inline mat3 TranslationMatrix(const vec2& translation) { in TranslationMatrix()
164 inline vec2 TransformPoint(const mat3& m, const vec2& p) { in TransformPoint()
168 inline vec2 TransformVector(const mat3& m, const vec2& p) { in TransformVector()
Dtypes.h24 using vec2 = vec2f; variable
/frameworks/native/libs/ui/
DTransform.cpp181 vec2 Transform::transform(const vec2& v) const { in transform()
182 vec2 r; in transform()
198 vec2 Transform::transform(int x, int y) const in transform()
200 return transform(vec2(x,y)); in transform()
211 vec2 lt( bounds.left, bounds.top ); in transform()
212 vec2 rt( bounds.right, bounds.top ); in transform()
213 vec2 lb( bounds.left, bounds.bottom ); in transform()
214 vec2 rb( bounds.right, bounds.bottom ); in transform()
238 vec2 lt(bounds.left, bounds.top); in transform()
239 vec2 rt(bounds.right, bounds.top); in transform()
[all …]
/frameworks/base/core/res/res/raw/
Dcolor_fade_vert.vert3 attribute vec2 position;
4 attribute vec2 uv;
5 varying vec2 UV;
Dcolor_fade_frag.frag7 varying vec2 UV;
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
DQuaternion.java55 double[] vec2 = normal(v2); in set() local
56 double[] axis = normal(cross(vec1, vec2)); in set()
57 double angle = Math.acos(dot(vec1, vec2)); in set()
63 double[] vec2 = normal(v2); in calcAngle() local
64 return Math.acos(Math.min(dot(vec1, vec2), 1)); in calcAngle()
69 double[] vec2 = normal(v2); in calcAxis() local
70 return normal(cross(vec1, vec2)); in calcAxis()
/frameworks/base/packages/SystemUI/res/raw/
Dimage_wallpaper_vertex_shader.glsl2 attribute vec2 aTextureCoordinates;
3 varying vec2 vTextureCoordinates;
Dimage_wallpaper_fragment_shader.glsl15 varying vec2 vTextureCoordinates;
/frameworks/rs/tests/java_api/Balls/src/com/example/android/rs/balls/
Dball_physics.rs60 float2 vec2 = vec * vec;
61 float len2 = vec2.x + vec2.y;
79 float2 vec2 = vec * vec;
80 float len2 = max(2.f, vec2.x + vec2.y);
/frameworks/native/libs/ui/include/ui/
DTransform.h81 vec2 transform(int x, int y) const;
89 vec2 transform(const vec2& v) const;
/frameworks/native/libs/ui/include_vndk/ui/
DTransform.h81 vec2 transform(int x, int y) const;
89 vec2 transform(const vec2& v) const;
/frameworks/native/libs/renderengine/gl/
DGLESRenderEngine.cpp570 Mesh::VertexArray<vec2> position(mesh.getPositionArray<vec2>()); in fillRegionWithColor()
719 Mesh::VertexArray<vec2> cropCoords(mesh.getCropCoordArray<vec2>()); in setupLayerCropping()
720 cropCoords[0] = vec2(cropWin.left, cropWin.top); in setupLayerCropping()
721 cropCoords[1] = vec2(cropWin.left, cropWin.top + cropWin.getHeight()); in setupLayerCropping()
722 cropCoords[2] = vec2(cropWin.right, cropWin.top + cropWin.getHeight()); in setupLayerCropping()
723 cropCoords[3] = vec2(cropWin.right, cropWin.top); in setupLayerCropping()
928 Mesh::VertexArray<vec2> position(mesh.getPositionArray<vec2>()); in drawLayers()
929 position[0] = vec2(bounds.left, bounds.top); in drawLayers()
930 position[1] = vec2(bounds.left, bounds.bottom); in drawLayers()
931 position[2] = vec2(bounds.right, bounds.bottom); in drawLayers()
[all …]
/frameworks/native/libs/math/tests/
Dmat_test.cpp304 mat2 m2(vec2(2)); in TEST_F()
315 mat2 m2(vec2(2)); in TEST_F()
338 EXPECT_EQ(mat2(vec2(-1, 0), in TEST_F()
339 vec2(0, -1)), m0); in TEST_F()
350 mat2 m1(vec2(1, 2), vec2(3, 4)); in TEST_F()
351 mat2 m2(vec2(1, 3), vec2(2, 4)); in TEST_F()
354 EXPECT_EQ(vec2(1, 4), diag(m1)); in TEST_F()
Dvec_test.cpp37 EXPECT_EQ(sizeof(vec2), sizeof(float)*2); in TEST_F()
/frameworks/native/services/surfaceflinger/
DLayer.cpp628 vec2 lt = vec2(win.left, win.top); in computeGeometry()
629 vec2 lb = vec2(win.left, win.bottom); in computeGeometry()
630 vec2 rb = vec2(win.right, win.bottom); in computeGeometry()
631 vec2 rt = vec2(win.right, win.top); in computeGeometry()
641 renderengine::Mesh::VertexArray<vec2> position(mesh.getPositionArray<vec2>()); in computeGeometry()
/frameworks/native/libs/math/include/math/
Dvec2.h112 typedef details::TVec2<float> vec2; typedef
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Dvlc_encode.cpp2544 Int vec1, vec2, vec3; in find_pmvs() local
2571 vec2 = 3 ; in find_pmvs()
2583 vec2 = 3 ; in find_pmvs()
2595 vec2 = 4 ; in find_pmvs()
2607 vec2 = 1 ; in find_pmvs()
2619 vec2 = 1 ; in find_pmvs()
2693 p2x = motdata[yin2*nMBPerRow+xin2][vec2].x; in find_pmvs()
2694 p2y = motdata[yin2*nMBPerRow+xin2][vec2].y; in find_pmvs()
/frameworks/native/services/surfaceflinger/tests/hwc2/
DHwc2TestBuffer.cpp235 static const std::array<vec2, 4> triangles = {{