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

1234

/external/eigen/doc/snippets/
H A DTutorial_AdvancedInitialization_Join.cpp5 RowVectorXd vec2(4);
6 vec2 << 1, 4, 9, 16;;
7 std::cout << "vec2 = " << vec2 << std::endl;
10 joined << vec1, vec2; variable
/external/chromium-trace/trace-viewer/src/base/
H A Dgl_matrix.js10 base.requireRawScript('../third_party/gl-matrix/src/gl-matrix/vec2.js');
15 var tmp_vec2 = vec2.create();
16 var tmp_vec2b = vec2.create();
20 vec2.createFromArray = function(arr) {
23 var v = vec2.create();
24 vec2.set(v, arr[0], arr[1]);
28 vec2.createXY = function(x, y) {
29 var v = vec2.create();
30 vec2.set(v, x, y);
34 vec2
[all...]
H A Dquad.js12 tmpVec2s[i] = vec2.create();
20 var p00 = vec2.createXY(0, 0);
21 var p10 = vec2.createXY(1, 0);
22 var p01 = vec2.createXY(0, 1);
23 var p11 = vec2.createXY(1, 1);
25 var lerpingVecA = vec2.create();
26 var lerpingVecB = vec2.create();
28 vec2.scale(lerpingVecA, a, amt);
29 vec2.scale(lerpingVecB, b, 1 - amt);
30 vec2
[all...]
H A Dbbox2_test.js12 var x = vec2.create();
13 vec2.set(x, 10, 10);
20 vec2.set(x, 11, 11);
H A Dbbox2.js56 this.max_ = vec2.create();
57 this.min_ = vec2.create();
58 vec2.set(this.max_, x, y);
59 vec2.set(this.min_, x, y);
74 this.max_ = vec2.create();
75 this.min_ = vec2.create();
76 vec2.set(this.max_, value[0], value[1]);
77 vec2.set(this.min_, value[0], value[1]);
109 var size = vec2.create();
110 vec2
[all...]
/external/chromium_org/third_party/mesa/src/src/glsl/builtins/profiles/
H A DARB_shader_texture_lod.glsl5 vec2 P, float dPdx, float dPdy);
10 vec2 P, vec2 dPdx, vec2 dPdy);
12 vec3 P, vec2 dPdx, vec2 dPdy);
14 vec4 P, vec2 dPdx, vec2 dPdy);
30 vec3 P, vec2 dPdx, vec2 dPd
[all...]
H A DARB_shader_texture_lod.frag6 vec4 texture1DProjLod(sampler1D sampler, vec2 coord, float lod);
8 vec4 texture2DLod (sampler2D sampler, vec2 coord, float lod);
/external/mesa3d/src/glsl/builtins/profiles/
H A DARB_shader_texture_lod.glsl5 vec2 P, float dPdx, float dPdy);
10 vec2 P, vec2 dPdx, vec2 dPdy);
12 vec3 P, vec2 dPdx, vec2 dPdy);
14 vec4 P, vec2 dPdx, vec2 dPdy);
30 vec3 P, vec2 dPdx, vec2 dPd
[all...]
H A DARB_shader_texture_lod.frag6 vec4 texture1DProjLod(sampler1D sampler, vec2 coord, float lod);
8 vec4 texture2DLod (sampler2D sampler, vec2 coord, float lod);
/external/chromium-trace/trace-viewer/third_party/gl-matrix/src/gl-matrix/
H A Dvec2.js25 * @name vec2
27 var vec2 = {};
30 * Creates a new, empty vec2
32 * @returns {vec2} a new 2D vector
34 vec2.create = function() {
42 * Creates a new vec2 initialized with values from an existing vector
44 * @param {vec2} a vector to clone
45 * @returns {vec2} a new 2D vector
47 vec2.clone = function(a) {
55 * Creates a new vec2 initialize
[all...]
/external/clang/test/Sema/
H A Dext_vector_components.c11 float2 vec2, vec2_2; local
17 vec2.z; // expected-error {{vector component access exceeds type 'float2'}}
18 vec2.xyzw; // expected-error {{vector component access exceeds type 'float2'}}
22 vec2 = vec4.s01; // legal, shorten
23 vec2 = vec4.S01; // legal, shorten
26 f = vec2.x; // legal, shorten
32 vec2.x = f;
33 vec2.xx = vec2_2.xy; // expected-error {{vector is not assignable (contains duplicate components)}}
34 vec2.yx = vec2_2.xy;
/external/chromium-trace/trace-viewer/src/ui/
H A Drect_view.js44 var topLeft = vec2.fromValues(this.rect_.x, this.rect_.y);
45 var botRight = vec2.fromValues(
48 vec2.transformMat2d(topLeft, topLeft,
50 vec2.scale(topLeft, topLeft, devicePixelsPerLayoutPixel);
51 vec2.transformMat2d(botRight, botRight,
53 vec2.scale(botRight, botRight, devicePixelsPerLayoutPixel);
H A Dquad_view_viewport_test.js27 var tmp = vp.layoutPixelsToWorldPixels(vec2.createXY(0, 0));
32 var tmp = vp.layoutPixelsToWorldPixels(vec2.createXY(125, 62.5));
37 var tmp = vp.layoutPixelsToWorldPixels(vec2.createXY(250, 125));
57 var tmp = vp.layoutPixelsToWorldPixels(vec2.createXY(0, 0));
62 var tmp = vp.layoutPixelsToWorldPixels(vec2.createXY(137.5, 75));
67 var tmp = vp.layoutPixelsToWorldPixels(vec2.createXY(275, 150));
H A Dquad_view_viewport.js91 var res = vec2.create();
92 return vec2.scale(res, v, this.devicePixelRatio);
96 var res = vec2.create();
97 vec2.transformMat2d(res, v, this.transformDevicePixelsToWorld_);
/external/chromium-trace/trace-viewer/third_party/gl-matrix/spec/gl-matrix/
H A Dvec2-spec.js23 describe("vec2", function() {
29 beforeEach(function() { result = vec2.create(); });
34 beforeEach(function() { result = vec2.clone(vecA); });
39 beforeEach(function() { result = vec2.fromValues(1, 2); });
44 beforeEach(function() { result = vec2.copy(out, vecA); });
50 beforeEach(function() { result = vec2.set(out, 1, 2); });
57 beforeEach(function() { result = vec2.add(out, vecA, vecB); });
66 beforeEach(function() { result = vec2.add(vecA, vecA, vecB); });
74 beforeEach(function() { result = vec2.add(vecB, vecA, vecB); });
83 it("should have an alias called 'sub'", function() { expect(vec2
[all...]
/external/chromium_org/content/browser/renderer_host/
H A Dcompositing_iosurface_shader_programs_mac.cc38 varying vec2 texture_coord;
48 varying vec2 texture_coord;
105 varying vec2 texture_coord0;
106 varying vec2 texture_coord1;
107 varying vec2 texture_coord2;
108 varying vec2 texture_coord3;
112 vec2 texcoord_base = gl_MultiTexCoord0.xy;
113 vec2 one_texel_x = vec2(texel_scale_x_, 0.0);
128 varying vec2 texture_coord
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/gallivm/
H A Dlp_bld_quad.c96 LLVMValueRef vec1, vec2; local
114 vec2 = lp_build_swizzle_aos(bld, a, swizzle2);
117 return LLVMBuildFSub(builder, vec2, vec1, "ddxddy");
119 return LLVMBuildSub(builder, vec2, vec1, "ddxddy");
131 LLVMValueRef vec1, vec2; local
151 vec2 = LLVMBuildShuffleVector(builder, a, b,
154 return LLVMBuildFSub(builder, vec2, vec1, "ddxddyddxddy");
156 return LLVMBuildSub(builder, vec2, vec1, "ddxddyddxddy");
/external/mesa3d/src/gallium/auxiliary/gallivm/
H A Dlp_bld_quad.c96 LLVMValueRef vec1, vec2; local
114 vec2 = lp_build_swizzle_aos(bld, a, swizzle2);
117 return LLVMBuildFSub(builder, vec2, vec1, "ddxddy");
119 return LLVMBuildSub(builder, vec2, vec1, "ddxddy");
131 LLVMValueRef vec1, vec2; local
151 vec2 = LLVMBuildShuffleVector(builder, a, b,
154 return LLVMBuildFSub(builder, vec2, vec1, "ddxddyddxddy");
156 return LLVMBuildSub(builder, vec2, vec1, "ddxddyddxddy");
/external/clang/test/PCH/
H A Dexprs.h79 extern double2 vec2, vec2b;
80 typedef typeof(vec2.x) ext_vector_element;
103 typedef typeof(__builtin_shufflevector(vec2, vec2b, 2, 1)) shuffle_expr;
107 typedef typeof(__builtin_convertvector(vec2, float2)) convert_expr;
/external/chromium_org/cc/output/
H A Dshader.cc178 attribute TexCoordPrecision vec2 a_texCoord;
180 varying TexCoordPrecision vec2 v_texCoord;
216 attribute TexCoordPrecision vec2 a_texCoord;
218 varying TexCoordPrecision vec2 v_texCoord;
219 uniform TexCoordPrecision vec2 texScale;
220 uniform TexCoordPrecision vec2 texOffset;
287 attribute TexCoordPrecision vec2 a_texCoord;
292 varying TexCoordPrecision vec2 v_texCoord;
307 varying TexCoordPrecision vec2 v_texCoord;
310 v_texCoord = (a_position.xy + vec2(1.
[all...]
/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/
H A Daudio_multi_vector_unittest.cc79 AudioMultiVector vec2(num_channels_, initial_size);
80 EXPECT_FALSE(vec2.Empty());
81 EXPECT_EQ(num_channels_, vec2.Channels());
82 EXPECT_EQ(initial_size, vec2.Size());
136 AudioMultiVector vec2(num_channels_, array_length());
144 vec2[channel][i] =
148 // Append vec2 to the back of vec1.
149 vec1.PushBack(vec2);
162 AudioMultiVector vec2(num_channels_);
164 // Append vec1 to the back of vec2 (whic
[all...]
/external/chromium_org/third_party/angle/samples/angle/simple_texture_2d/
H A DSimpleTexture2D.cpp33 attribute vec2 a_texCoord;
34 varying vec2 v_texCoord;
45 varying vec2 v_texCoord;
/external/chromium_org/gpu/command_buffer/service/
H A Dgles2_cmd_copy_texture_chromium.cc58 uniform vec2 u_half_size;
60 varying TexCoordPrecision vec2 v_uv;
63 v_uv = a_position.xy * vec2(u_half_size.s, u_half_size.t) +
64 vec2(u_half_size.s, u_half_size.t);
69 uniform vec2 u_half_size;
71 varying TexCoordPrecision vec2 v_uv;
74 v_uv = a_position.xy * vec2(u_half_size.s, -u_half_size.t) +
75 vec2(u_half_size.s, u_half_size.t);
83 varying TexCoordPrecision vec2 v_uv;
90 varying TexCoordPrecision vec2 v_u
[all...]
/external/eigen/test/
H A Dsparse_solvers.cpp47 DenseVector vec2 = vec1, vec3 = vec1; local
53 VERIFY_IS_APPROX(refMat2.template triangularView<Lower>().solve(vec2),
58 VERIFY_IS_APPROX(refMat2.template triangularView<Upper>().solve(vec2),
60 VERIFY_IS_APPROX(refMat2.conjugate().template triangularView<Upper>().solve(vec2),
66 VERIFY_IS_APPROX(refMat2.conjugate().template triangularView<Upper>().solve(vec2),
72 VERIFY_IS_APPROX(refMat2.transpose().template triangularView<Upper>().solve(vec2),
77 VERIFY_IS_APPROX(refMat2.transpose().template triangularView<Lower>().solve(vec2),
99 VERIFY_IS_APPROX(refMat2.template triangularView<Lower>().solve(vec2),
/external/libcxx/test/containers/sequences/deque/deque.modifiers/
H A Dpush_back_exception_safety.pass.cpp72 std::deque<CMyClass> vec2(vec);
79 assert(vec==vec2);

Completed in 775 milliseconds

1234