Home
last modified time | relevance | path

Searched refs:Vec2 (Results 1 – 25 of 161) sorted by relevance

1234567

/external/opencv3/3rdparty/openexr/Imath/
DImathVec.cpp58 normalizeOrThrow(Vec2<T> &v) in normalizeOrThrow()
131 Vec2<short>::length () const in length()
139 const Vec2<short> &
140 Vec2<short>::normalize () in normalize()
147 const Vec2<short> &
148 Vec2<short>::normalizeExc () throw (Iex::MathExc) in normalizeExc()
158 const Vec2<short> &
159 Vec2<short>::normalizeNonNull () in normalizeNonNull()
166 Vec2<short>
167 Vec2<short>::normalized () const in normalized()
[all …]
DImathVec.h61 template <class T> class Vec2; variable
68 template <class T> class Vec2
86 Vec2 (); // no initialization
87 explicit Vec2 (T a); // (a a)
88 Vec2 (T a, T b); // (a b)
95 Vec2 (const Vec2 &v);
96 template <class S> Vec2 (const Vec2<S> &v);
98 const Vec2 & operator = (const Vec2 &v);
109 void setValue (const Vec2<S> &v);
115 void getValue (Vec2<S> &v) const;
[all …]
DImathBox.h342 class Box<Vec2<T> >
350 Vec2<T> min;
351 Vec2<T> max;
358 Box (const Vec2<T> &point);
359 Box (const Vec2<T> &minT, const Vec2<T> &maxT);
365 bool operator == (const Box<Vec2<T> > &src) const;
366 bool operator != (const Box<Vec2<T> > &src) const;
373 void extendBy (const Vec2<T> &point);
374 void extendBy (const Box<Vec2<T> > &box);
381 Vec2<T> size() const;
[all …]
DImathFrustum.h156 Line3<T> projectScreenToRay( const Vec2<T> & ) const;
157 Vec2<T> projectPointToScreen( const Vec3<T> & ) const;
169 Vec2<T> screenToLocal( const Vec2<T> & ) const;
170 Vec2<T> localToScreen( const Vec2<T> & ) const;
454 Vec2<T> bl = screenToLocal( Vec2<T>(l,b) ); in window()
455 Vec2<T> tr = screenToLocal( Vec2<T>(r,t) ); in window()
462 Vec2<T> Frustum<T>::screenToLocal(const Vec2<T> &s) const in screenToLocal()
464 return Vec2<T>( _left + (_right-_left) * (1.f+s.x) / 2.f, in screenToLocal()
469 Vec2<T> Frustum<T>::localToScreen(const Vec2<T> &p) const in localToScreen()
486 return Vec2<T>( leftPlusRight / leftMinusRight, in localToScreen()
[all …]
/external/llvm/unittests/ADT/
DPackedVectorTest.cpp34 PackedVector<unsigned, 2> Vec2(3); in TEST() local
35 EXPECT_EQ(3U, Vec2.size()); in TEST()
36 EXPECT_FALSE(Vec2.empty()); in TEST()
52 EXPECT_FALSE(Vec == Vec2); in TEST()
53 EXPECT_TRUE(Vec != Vec2); in TEST()
55 Vec = Vec2; in TEST()
56 EXPECT_TRUE(Vec == Vec2); in TEST()
57 EXPECT_FALSE(Vec != Vec2); in TEST()
60 Vec2[1] = 2; in TEST()
61 Vec |= Vec2; in TEST()
[all …]
/external/deqp/framework/common/
DtcuTexLookupVerifier.hpp101 Vec2 computeLodBoundsFromDerivates (const float dudx, const float dudy, const LodPrecision& prec);
102 Vec2 computeLodBoundsFromDerivates (const float dudx, const float dvdx, const float dudy, const f…
103 Vec2 computeLodBoundsFromDerivates (const float dudx, const float dvdx, const float dwdx, const f…
104 Vec2 computeCubeLodBoundsFromDerivates (const Vec3& coord, const Vec3& coordDx, const Vec3& coordD…
106 Vec2 clampLodBounds (const Vec2& lodBounds, const Vec2& lodMinMax, const LodPrecision& prec);
108 …t Sampler& sampler, const LookupPrecision& prec, const float coord, const Vec2& lodBounds, const V…
109 …ture, const Sampler& sampler, const LookupPrecision& prec, const Vec2& coord, const Vec2& lodBound…
110 …t Sampler& sampler, const LookupPrecision& prec, const Vec3& coord, const Vec2& lodBounds, const V…
111 …ture, const Sampler& sampler, const LookupPrecision& prec, const Vec2& coord, const Vec2& lodBound…
112 …t Sampler& sampler, const LookupPrecision& prec, const Vec3& coord, const Vec2& lodBounds, const V…
[all …]
DtcuTexLookupVerifier.cpp251 const Vec2& fBounds, in isLinearRangeValid()
289 const Vec2& xBounds, in isBilinearRangeValid()
290 const Vec2& yBounds, in isBilinearRangeValid()
318 const Vec2& xBounds, in isTrilinearRangeValid()
319 const Vec2& yBounds, in isTrilinearRangeValid()
320 const Vec2& zBounds, in isTrilinearRangeValid()
355 const Vec2& xBounds0, in is1DTrilinearFilterResultValid()
356 const Vec2& xBounds1, in is1DTrilinearFilterResultValid()
357 const Vec2& zBounds, in is1DTrilinearFilterResultValid()
392 const Vec2& xBounds0, in is2DTrilinearFilterResultValid()
[all …]
DtcuTexCompareVerifier.cpp194 const Vec2& depths, in isLinearCompareValid()
195 const Vec2& fBounds, in isLinearCompareValid()
290 const Vec2& xBounds, in isBilinearPCFCompareValid()
291 const Vec2& yBounds, in isBilinearPCFCompareValid()
363 const Vec2& xBounds, in isBilinearCompareValid()
364 const Vec2& yBounds, in isBilinearCompareValid()
424 const Vec2& xBounds0, in isTrilinearPCFCompareValid()
425 const Vec2& yBounds0, in isTrilinearPCFCompareValid()
426 const Vec2& xBounds1, in isTrilinearPCFCompareValid()
427 const Vec2& yBounds1, in isTrilinearPCFCompareValid()
[all …]
DtcuTexCompareVerifier.hpp55 …, const Sampler& sampler, const TexComparePrecision& prec, const Vec2& coord, const Vec2& lodBound…
56 …mpler& sampler, const TexComparePrecision& prec, const Vec3& coord, const Vec2& lodBounds, const f…
57 …mpler& sampler, const TexComparePrecision& prec, const Vec3& coord, const Vec2& lodBounds, const f…
59 … texture, const Sampler& sampler, const TexComparePrecision& prec, const Vec2& coord, const IVec2…
/external/deqp/modules/gles2/functional/
Des2fMultisampleTests.cpp50 using tcu::Vec2;
65 Vec2 p0;
66 Vec2 p1;
67 Vec2 p2;
68 Vec2 p3;
70 …QuadCorners(const Vec2& p0_, const Vec2& p1_, const Vec2& p2_, const Vec2& p3_) : p0(p0_), p1(p1_)… in QuadCorners()
189 …void renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec4& c0, const Ve…
190 void renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec4& color) const;
191 …void renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec2& p3, const Vec4&…
192 …void renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec2& p3, const Vec4&…
[all …]
Des2fVertexTextureTests.cpp44 using tcu::Vec2;
106 static inline Vec2 safe2DTexCoords (const Vec2& raw, const IVec2& textureSize) in safe2DTexCoords()
108 return safeCoords(raw, textureSize, Vec2(0.5f)); in safe2DTexCoords()
146 Vec2 scale;
147 Vec2 bias;
149 TexTypeCoordParams (const Vec2& scale_, const Vec2& bias_) : scale(scale_), bias(bias_) {} in TexTypeCoordParams()
155 Vec2 scale;
156 Vec2 bias;
159 …TexTypeCoordParams (const Vec2& scale_, const Vec2& bias_, tcu::CubeFace face_) : scale(scale_), b… in TexTypeCoordParams()
194 …const float* getPositionPtr (void) const { DE_STATIC_ASSERT(sizeof(Vec2) == 2*sizeof(float)); … in getPositionPtr()
[all …]
Des2fTextureMipmapTests.cpp53 using tcu::Vec2;
190 Vec2 bottomLeft; in getBasicTexCoord2D()
191 Vec2 topRight; in getBasicTexCoord2D()
194 { Vec2(-0.1f, 0.1f), Vec2( 0.8f, 1.0f) }, in getBasicTexCoord2D()
195 { Vec2(-0.3f, -0.6f), Vec2( 0.7f, 0.4f) }, in getBasicTexCoord2D()
196 { Vec2(-0.3f, 0.6f), Vec2( 0.7f, -0.9f) }, in getBasicTexCoord2D()
197 { Vec2(-0.8f, 0.6f), Vec2( 0.7f, -0.9f) }, in getBasicTexCoord2D()
199 { Vec2(-0.5f, -0.5f), Vec2( 1.5f, 1.5f) }, in getBasicTexCoord2D()
200 { Vec2( 1.0f, -1.0f), Vec2(-1.3f, 1.0f) }, in getBasicTexCoord2D()
201 { Vec2( 1.2f, -1.0f), Vec2(-1.3f, 1.6f) }, in getBasicTexCoord2D()
[all …]
/external/deqp/modules/gles3/accuracy/
Des3aTextureMipmapTests.cpp50 using tcu::Vec2;
178 Vec2 bottomLeft; in getBasicTexCoord2D()
179 Vec2 topRight; in getBasicTexCoord2D()
182 { Vec2(-0.1f, 0.1f), Vec2( 0.8f, 1.0f) }, in getBasicTexCoord2D()
183 { Vec2(-0.3f, -0.6f), Vec2( 0.7f, 0.4f) }, in getBasicTexCoord2D()
184 { Vec2(-0.3f, 0.6f), Vec2( 0.7f, -0.9f) }, in getBasicTexCoord2D()
185 { Vec2(-0.8f, 0.6f), Vec2( 0.7f, -0.9f) }, in getBasicTexCoord2D()
187 { Vec2(-0.5f, -0.5f), Vec2( 1.5f, 1.5f) }, in getBasicTexCoord2D()
188 { Vec2( 1.0f, -1.0f), Vec2(-1.3f, 1.0f) }, in getBasicTexCoord2D()
189 { Vec2( 1.2f, -1.0f), Vec2(-1.3f, 1.6f) }, in getBasicTexCoord2D()
[all …]
Des3aTextureFilteringTests.cpp230 computeQuadTexCoord2D(texCoord, tcu::Vec2(-4.0f, -4.5f), tcu::Vec2(4.0f, 2.5f)); in iterate()
241 computeQuadTexCoord2D(texCoord, tcu::Vec2(-0.5f, 0.75f), tcu::Vec2(0.25f, 1.25f)); in iterate()
270 computeQuadTexCoord2D(texCoord, tcu::Vec2(sMin, tMin), tcu::Vec2(sMin+sRange, tMin+tRange)); in iterate()
281 computeQuadTexCoord2D(texCoord, tcu::Vec2(-0.5f, 0.75f), tcu::Vec2(0.25f, 1.25f)); in iterate()
485 const tcu::Vec2& bottomLeft, in renderFaces()
486 const tcu::Vec2& topRight, in renderFaces()
487 const tcu::Vec2& texCoordTopRightFactor) in renderFaces()
575 m_onlySampleFaceInterior ? tcu::Vec2(-0.81f, -0.81f) : tcu::Vec2(-0.975f, -0.975f), in iterate()
576 m_onlySampleFaceInterior ? tcu::Vec2( 0.8f, 0.8f) : tcu::Vec2( 0.975f, 0.975f), in iterate()
577 !m_onlySampleFaceInterior ? tcu::Vec2(1.3f, 1.25f) : tcu::Vec2(1.0f, 1.0f)); in iterate()
[all …]
/external/deqp/modules/gles2/accuracy/
Des2aTextureMipmapTests.cpp52 using tcu::Vec2;
186 Vec2 bottomLeft; in getBasicTexCoord2D()
187 Vec2 topRight; in getBasicTexCoord2D()
190 { Vec2(-0.1f, 0.1f), Vec2( 0.8f, 1.0f) }, in getBasicTexCoord2D()
191 { Vec2(-0.3f, -0.6f), Vec2( 0.7f, 0.4f) }, in getBasicTexCoord2D()
192 { Vec2(-0.3f, 0.6f), Vec2( 0.7f, -0.9f) }, in getBasicTexCoord2D()
193 { Vec2(-0.8f, 0.6f), Vec2( 0.7f, -0.9f) }, in getBasicTexCoord2D()
195 { Vec2(-0.5f, -0.5f), Vec2( 1.5f, 1.5f) }, in getBasicTexCoord2D()
196 { Vec2( 1.0f, -1.0f), Vec2(-1.3f, 1.0f) }, in getBasicTexCoord2D()
197 { Vec2( 1.2f, -1.0f), Vec2(-1.3f, 1.6f) }, in getBasicTexCoord2D()
[all …]
/external/deqp/modules/glshared/
DglsRasterizationTestUtil.cpp86 const tcu::Vec2 u (p1.x() / p1.w() - p0.x() / p0.w(), p1.y() / p1.w() - p0.y() / p0.w()); in isTriangleClockwise()
87 const tcu::Vec2 v (p2.x() / p2.w() - p0.x() / p0.w(), p2.y() / p2.w() - p0.y() / p0.w()); in isTriangleClockwise()
104 bool pixelNearLineSegment (const tcu::IVec2& pixel, const tcu::Vec2& p0, const tcu::Vec2& p1) in pixelNearLineSegment()
106 const tcu::Vec2 pixelCenterPosition = tcu::Vec2((float)pixel.x() + 0.5f, (float)pixel.y() + 0.5f); in pixelNearLineSegment()
114 const tcu::Vec2 line = p1 - p0; in pixelNearLineSegment()
115 const tcu::Vec2 v = pixelCenterPosition - p0; in pixelNearLineSegment()
145 const tcu::Vec2 triangleNormalizedDeviceSpace[3] = in pixelOnlyOnASharedEdge()
147 …tcu::Vec2(triangle.positions[0].x() / triangle.positions[0].w(), triangle.positions[0].y() / trian… in pixelOnlyOnASharedEdge()
148 …tcu::Vec2(triangle.positions[1].x() / triangle.positions[1].w(), triangle.positions[1].y() / trian… in pixelOnlyOnASharedEdge()
149 …tcu::Vec2(triangle.positions[2].x() / triangle.positions[2].w(), triangle.positions[2].y() / trian… in pixelOnlyOnASharedEdge()
[all …]
DglsTextureTestUtil.cpp1485 void computeQuadTexCoord2D (std::vector<float>& dst, const tcu::Vec2& bottomLeft, const tcu::Vec2& … in computeQuadTexCoord2D()
1495 …d2DArray (std::vector<float>& dst, int layerNdx, const tcu::Vec2& bottomLeft, const tcu::Vec2& top… in computeQuadTexCoord2DArray()
1590 …be (std::vector<float>& dst, tcu::CubeFace face, const tcu::Vec2& bottomLeft, const tcu::Vec2& top… in computeQuadTexCoordCube()
1630 …r<float>& dst, tcu::CubeFace face, const tcu::Vec2& bottomLeft, const tcu::Vec2& topRight, const t… in computeQuadTexCoordCubeArray()
1718 …const tcu::Vec2 lodBias ((sampleParams.flags & ReferenceParams::USE_BIAS) ? sampleParams… in computeTextureLookupDiff()
1722 const tcu::Vec2 lodOffsets[] = in computeTextureLookupDiff()
1724 tcu::Vec2(-1, 0), in computeTextureLookupDiff()
1725 tcu::Vec2(+1, 0), in computeTextureLookupDiff()
1726 tcu::Vec2( 0, -1), in computeTextureLookupDiff()
1727 tcu::Vec2( 0, +1), in computeTextureLookupDiff()
[all …]
/external/deqp/modules/gles3/functional/
Des3fMultisampleTests.cpp51 using tcu::Vec2;
67 Vec2 p0;
68 Vec2 p1;
69 Vec2 p2;
70 Vec2 p3;
72 …QuadCorners(const Vec2& p0_, const Vec2& p1_, const Vec2& p2_, const Vec2& p3_) : p0(p0_), p1(p1_)… in QuadCorners()
213 …void renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec4& c0, const Ve…
214 void renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec4& color) const;
215 …void renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec2& p3, const Vec4&…
216 …void renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec2& p3, const Vec4&…
[all …]
Des3fShaderPackingFunctionTests.cpp160 std::vector<tcu::Vec2> inputs; in iterate()
167 inputs.push_back(tcu::Vec2(0.0f, 0.0f)); in iterate()
168 inputs.push_back(tcu::Vec2(-1.0f, 1.0f)); in iterate()
169 inputs.push_back(tcu::Vec2(0.5f, -0.5f)); in iterate()
170 inputs.push_back(tcu::Vec2(-1.5f, 1.5f)); in iterate()
171 inputs.push_back(tcu::Vec2(0.25f, -0.75f)); in iterate()
178 inputs.push_back(tcu::Vec2(x, y)); in iterate()
186 inputs.push_back(tcu::Vec2(x, y)); in iterate()
265 std::vector<tcu::Vec2> outputs; in iterate()
351 std::vector<tcu::Vec2> inputs; in iterate()
[all …]
Des3fVertexTextureTests.cpp44 using tcu::Vec2;
124 static inline Vec2 safe2DTexCoords (const Vec2& raw, const IVec2& textureSize) in safe2DTexCoords()
126 return safeCoords(raw, textureSize, Vec2(0.5f)); in safe2DTexCoords()
180 Vec2 scale;
181 Vec2 bias;
183 TexTypeCoordParams (const Vec2& scale_, const Vec2& bias_) : scale(scale_), bias(bias_) {} in TexTypeCoordParams()
189 Vec2 scale;
190 Vec2 bias;
193 …TexTypeCoordParams (const Vec2& scale_, const Vec2& bias_, tcu::CubeFace face_) : scale(scale_), b… in TexTypeCoordParams()
244 …const float* getPositionPtr (void) const { DE_STATIC_ASSERT(sizeof(Vec2) == 2*sizeof(float)); … in getPositionPtr()
[all …]
/external/deqp/modules/gles31/functional/
Des31fTextureFilteringTests.cpp138 tcu::Vec2 bottomLeft;
139 tcu::Vec2 topRight;
140 tcu::Vec2 layerRange;
147 …onst glu::TextureCubeArray* tex_, const tcu::Vec2& bottomLeft_, const tcu::Vec2& topRight_, const … in FilterCase()
270 …m_cases.push_back(FilterCase(tex0, tcu::Vec2(-0.8f, -0.8f), tcu::Vec2(0.8f, 0.8f), tcu::Vec2(-0.5… in init()
271 …m_cases.push_back(FilterCase(tex0, tcu::Vec2(0.5f, 0.65f), tcu::Vec2(0.8f, 0.8f), tcu::Vec2(-0.5f… in init()
272 …m_cases.push_back(FilterCase(tex1, tcu::Vec2(-0.8f, -0.8f), tcu::Vec2(0.8f, 0.8f), tcu::Vec2(floa… in init()
273 …m_cases.push_back(FilterCase(tex1, tcu::Vec2(0.2f, 0.2f), tcu::Vec2(0.6f, 0.5f), tcu::Vec2(float(… in init()
281 …m_cases.push_back(FilterCase(tex0, tcu::Vec2(-1.25f, -1.2f), tcu::Vec2(1.2f, 1.25f), tcu::Vec2(-0.… in init()
283 …m_cases.push_back(FilterCase(tex0, tcu::Vec2(-1.19f, -1.3f), tcu::Vec2(1.1f, 1.35f), tcu::Vec2(-0.… in init()
[all …]
Des31fMultisampleTests.cpp45 using tcu::Vec2;
141 tcu::Vec2 samplePos = tcu::Vec2(-1, -1); in iterate()
178 …void renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec4& c0, const…
179 …void renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec4& color) co…
180 …void renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec2& p3, const Ve…
181 …void renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec2& p3, const Ve…
352 void DefaultFBOMultisampleCase::renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, con… in renderTriangle()
360 void DefaultFBOMultisampleCase::renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, con… in renderTriangle()
365 void DefaultFBOMultisampleCase::renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const V… in renderQuad()
371 void DefaultFBOMultisampleCase::renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const V… in renderQuad()
[all …]
/external/clang/test/CodeGen/
Darm_function_epilog.cpp4 struct Vec2 { struct
12 Vec2 getVec2() { in getVec2()
13 Vec2 out; in getVec2()
14 union { Vec2* v; unsigned char* u; } x; in getVec2()
/external/ceres-solver/examples/
Dlibmv_homography.cc71 typedef Eigen::Matrix<double, 2, 1> Vec2; typedef
136 const Vec2 &x1, in SymmetricGeometricDistance()
137 const Vec2 &x2) { in SymmetricGeometricDistance()
138 Vec2 forward_error, backward_error; in SymmetricGeometricDistance()
247 HomographySymmetricGeometricCostFunctor(const Vec2 &x, in HomographySymmetricGeometricCostFunctor()
248 const Vec2 &y) in HomographySymmetricGeometricCostFunctor()
254 typedef Eigen::Matrix<T, 2, 1> Vec2; in operator ()() typedef
257 Vec2 x(T(x_(0)), T(x_(1))); in operator ()()
258 Vec2 y(T(y_(0)), T(y_(1))); in operator ()()
268 const Vec2 x_;
[all …]
/external/vulkan-validation-layers/libs/glm/detail/
Dintrinsic_matrix.inl349 __m128 Vec2 = _mm_shuffle_ps(Temp2, Temp2, _MM_SHUFFLE(2, 2, 2, 0)); local
359 // + (Vec1[0] * Fac0[0] - Vec2[0] * Fac1[0] + Vec3[0] * Fac2[0]),
360 // - (Vec1[1] * Fac0[1] - Vec2[1] * Fac1[1] + Vec3[1] * Fac2[1]),
361 // + (Vec1[2] * Fac0[2] - Vec2[2] * Fac1[2] + Vec3[2] * Fac2[2]),
362 // - (Vec1[3] * Fac0[3] - Vec2[3] * Fac1[3] + Vec3[3] * Fac2[3]),
364 __m128 Mul01 = _mm_mul_ps(Vec2, Fac1);
371 // - (Vec0[0] * Fac0[0] - Vec2[0] * Fac3[0] + Vec3[0] * Fac4[0]),
372 // + (Vec0[0] * Fac0[1] - Vec2[1] * Fac3[1] + Vec3[1] * Fac4[1]),
373 // - (Vec0[0] * Fac0[2] - Vec2[2] * Fac3[2] + Vec3[2] * Fac4[2]),
374 // + (Vec0[0] * Fac0[3] - Vec2[3] * Fac3[3] + Vec3[3] * Fac4[3]),
[all …]

1234567