Searched defs:cross (Results 1 - 25 of 33) sorted by path

12

/external/chromium-trace/trace-viewer/third_party/gl-matrix/dist/
H A Dgl-matrix.js432 * Computes the cross product of two vec2's
433 * Note that the cross product must by definition produce a 3D vector
440 vec2.cross = function(out, a, b) {
937 * Computes the cross product of two vec3's
944 vec3.cross = function(out, a, b) {
/external/chromium-trace/trace-viewer/third_party/gl-matrix/src/gl-matrix/
H A Dvec2.js330 * Computes the cross product of two vec2's
331 * Note that the cross product must by definition produce a 3D vector
338 vec2.cross = function(out, a, b) {
H A Dvec3.js351 * Computes the cross product of two vec3's
358 vec3.cross = function(out, a, b) {
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-0.9.1/
H A D3d-raytrace.js87 function cross(v1, v2) { function
128 var normal = cross(edge1, edge2);
263 var xaxis = normaliseVector(cross(up, zaxis));
264 var yaxis = normaliseVector(cross(xaxis, subVector([0,0,0], zaxis)));
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-0.9/
H A D3d-raytrace.js87 function cross(v1, v2) { function
128 var normal = cross(edge1, edge2);
263 var xaxis = normaliseVector(cross(up, zaxis));
264 var yaxis = normaliseVector(cross(xaxis, subVector([0,0,0], zaxis)));
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-1.0/
H A D3d-raytrace.js87 function cross(v1, v2) { function
128 var normal = cross(edge1, edge2);
263 var xaxis = normaliseVector(cross(up, zaxis));
264 var yaxis = normaliseVector(cross(xaxis, subVector([0,0,0], zaxis)));
/external/chromium_org/third_party/WebKit/Source/platform/geometry/
H A DFloatPoint3D.h99 // Sets this FloatPoint3D to the cross product of the passed two.
102 void cross(const FloatPoint3D& a, const FloatPoint3D& b) function in class:blink::FloatPoint3D
112 // Convenience function returning "this cross point" as a
114 FloatPoint3D cross(const FloatPoint3D& point) const function in class:blink::FloatPoint3D
117 result.cross(*this, point);
/external/chromium_org/third_party/angle/samples/angle/sample_util/
H A DVector.cpp96 Vector3 Vector3::cross(const Vector3 &a, const Vector3 &b) function in class:Vector3
/external/chromium_org/third_party/flot/
H A Djquery.flot.symbol.min.js10 symbol: "square" // or "diamond", "triangle", "cross"
14 */(function(e){function t(e,t,n){var r={square:function(e,t,n,r,i){var s=r*Math.sqrt(Math.PI)/2;e.rect(t-s,n-s,s+s,s+s)},diamond:function(e,t,n,r,i){var s=r*Math.sqrt(Math.PI/2);e.moveTo(t-s,n),e.lineTo(t,n-s),e.lineTo(t+s,n),e.lineTo(t,n+s),e.lineTo(t-s,n)},triangle:function(e,t,n,r,i){var s=r*Math.sqrt(2*Math.PI/Math.sin(Math.PI/3)),o=s*Math.sin(Math.PI/3);e.moveTo(t-s/2,n+o/2),e.lineTo(t+s/2,n+o/2),i||(e.lineTo(t,n-o/2),e.lineTo(t-s/2,n+o/2))},cross:function(e,t,n,r,i){var s=r*Math.sqrt(Math.PI)/2;e.moveTo(t-s,n-s),e.lineTo(t+s,n+s),e.moveTo(t-s, (…) method
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/nv50/codegen/
H A Dnv50_ir_graph.cpp79 case CROSS: return "cross";
286 Stack bb, cross; local
309 cross.push(ei.getNode());
319 cross.moveTo(bb);
/external/chromium_org/third_party/mesa/src/src/mesa/swrast/
H A Ds_aatriangle.c223 /* cross product determines if sample is inside or outside each edge */
224 GLfloat cross = (dx0 * (sy - v0[1]) - dy0 * (sx - v0[0])); local
225 /* Check if the sample is exactly on an edge. If so, let cross be a
228 if (cross == 0.0F)
229 cross = dx0 + dy0;
230 if (cross < 0.0F) {
237 cross = (dx1 * (sy - v1[1]) - dy1 * (sx - v1[0]));
238 if (cross == 0.0F)
239 cross = dx1 + dy1;
240 if (cross < 0.
[all...]
/external/chromium_org/third_party/skia/experimental/Intersection/
H A DDataTypes.h233 double cross(const _Vector& a) const { function in struct:_Vector
/external/chromium_org/third_party/skia/include/core/
H A DSkPoint.h149 /** Returns the cross product of a and b, treating them as 2D vectors
439 /** Returns the cross product of a and b, treating them as 2D vectors
445 SkScalar cross(const SkPoint& vec) const { function in struct:SkPoint
465 * the values are consistent with the sign of (b-a) cross (pt-a)
/external/chromium_org/third_party/skia/src/core/
H A DSkPath.cpp219 // check the cross product of v with the vec from edgeBegin to each rect corner
2171 SkScalar cross = SkPoint::CrossProduct(lastVec, curVec); local
2177 if (!almost_equal(largest, largest + cross)) {
2178 int sign = SkScalarSignAsInt(cross);
2285 // fLastVec does not necessarily start at fLastPt. We only advance it when the cross product
2422 // returns cross product of (p1 - p0) and (p2 - p0)
2424 SkScalar cross = SkPoint::CrossProduct(p1 - p0, p2 - p0); local
2427 if (0 == cross) {
2437 cross = SkDoubleToScalar((p1x - p0x) * (p2y - p0y) -
2441 return cross;
2501 crossToDir(SkScalar cross, SkPath::Direction* dir) argument
2540 SkScalar cross = 0; local
[all...]
/external/chromium_org/third_party/skia/src/pathops/
H A DSkPathOpsPoint.h53 double cross(const SkDVector& a) const { function in struct:SkDVector
57 // similar to cross, this bastardization considers nearly coincident to be zero
/external/chromium_org/third_party/skia/src/utils/
H A DSkCamera.cpp52 void SkUnit3D::Cross(const SkUnit3D& a, const SkUnit3D& b, SkUnit3D* cross) { argument
53 SkASSERT(cross);
55 // use x,y,z, in case &a == cross or &b == cross
61 cross->set(x, y, z);
215 SkUnit3D axis, zenith, cross; local
229 SkUnit3D::Cross(axis, zenith, &cross);
237 orien->set(SkMatrix::kMScaleX, x * axis.fX - z * cross.fX);
238 orien->set(SkMatrix::kMSkewX, x * axis.fY - z * cross.fY);
239 orien->set(SkMatrix::kMTransX, x * axis.fZ - z * cross
[all...]
/external/chromium_org/third_party/webrtc/modules/audio_coding/codecs/ilbc/
H A Ddo_plc.c41 int32_t cross, ener, cross_comp, ener_comp = 0; local
90 WebRtcIlbcfix_CompCorr( &cross, &ener,
93 /* Normalize and store cross^2 and the number of shifts */
94 shiftMax = WebRtcSpl_GetSizeInBits(WEBRTC_SPL_ABS_W32(cross))-15;
95 crossSquareMax = (int16_t)WEBRTC_SPL_MUL_16_16_RSFT(WEBRTC_SPL_SHIFT_W32(cross, -shiftMax),
96 WEBRTC_SPL_SHIFT_W32(cross, -shiftMax), 15);
104 do a cross multiplication */
131 cross = cross_comp;
160 /* Square the cross correlation and norm it such that max_perSquare
164 tmp1 = (int16_t)WEBRTC_SPL_SHIFT_W32(cross, (totscal
[all...]
/external/deqp/framework/common/
H A DtcuVectorUtil.hpp163 inline Vector<T, Size> cross (const Vector<T, Size>& a, const Vector<T, Size>& b) function in namespace:tcu
/external/deqp/modules/gles2/scripts/
H A Dgenutil.py177 def cross(a, b): return a.cross(b) member in class:GenMath
449 def cross(self, v): member in class:Vec3
/external/deqp/modules/gles3/scripts/
H A Dgenutil.py187 def cross(a, b): return a.cross(b) member in class:GenMath
536 def cross(self, v): member in class:Vec3
/external/deqp/modules/gles31/scripts/
H A Dgenutil.py187 def cross(a, b): return a.cross(b) member in class:GenMath
538 def cross(self, v): member in class:Vec3
/external/eigen/Eigen/src/Eigenvalues/
H A DSelfAdjointEigenSolver.h583 VectorType cross; local
585 n = (cross = tmp.row(0).cross(tmp.row(1))).squaredNorm();
588 eivecs.col(k) = cross / sqrt(n);
591 n = (cross = tmp.row(0).cross(tmp.row(2))).squaredNorm();
594 eivecs.col(k) = cross / sqrt(n);
597 n = (cross = tmp.row(1).cross(tmp.row(2))).squaredNorm();
600 eivecs.col(k) = cross / sqr
[all...]
/external/eigen/Eigen/src/Geometry/
H A DOrthoMethods.h18 * \returns the cross product of \c *this and \a other
20 * Here is a very good explanation of cross-product: http://xkcd.com/199/
26 MatrixBase<Derived>::cross(const MatrixBase<OtherDerived>& other) const function in class:Eigen::MatrixBase
64 * \returns the cross product of \c *this and \a other using only the x, y, and z coefficients
69 * \sa MatrixBase::cross()
89 /** \returns a matrix expression of the cross product of each column or row
97 * \sa MatrixBase::cross() */
101 VectorwiseOp<ExpressionType,Direction>::cross(const MatrixBase<OtherDerived>& other) const function in class:Eigen::VectorwiseOp
206 * \sa cross()
/external/mesa3d/src/gallium/drivers/nv50/codegen/
H A Dnv50_ir_graph.cpp79 case CROSS: return "cross";
286 Stack bb, cross; local
309 cross.push(ei.getNode());
319 cross.moveTo(bb);
/external/mesa3d/src/mesa/swrast/
H A Ds_aatriangle.c223 /* cross product determines if sample is inside or outside each edge */
224 GLfloat cross = (dx0 * (sy - v0[1]) - dy0 * (sx - v0[0])); local
225 /* Check if the sample is exactly on an edge. If so, let cross be a
228 if (cross == 0.0F)
229 cross = dx0 + dy0;
230 if (cross < 0.0F) {
237 cross = (dx1 * (sy - v1[1]) - dy1 * (sx - v1[0]));
238 if (cross == 0.0F)
239 cross = dx1 + dy1;
240 if (cross < 0.
[all...]

Completed in 605 milliseconds

12