Searched defs:ry (Results 26 - 50 of 74) sorted by relevance

123

/external/chromium_org/third_party/skia/tests/
H A DPathOpsAngleTest.cpp127 static int find_slop(double x, double y, double rx, double ry) { argument
144 double x_ry1 = x1 * ry;
149 double x_ry2 = x2 * ry;
166 // x y rx ry
181 double ry = slopTest[3];
182 SkDebugf("%s xy %d=%d\n", __FUNCTION__, index, find_slop(x, y, rx, ry));
183 SkDebugf("%s rxy %d=%d\n", __FUNCTION__, index, find_slop(rx, ry, x, y));
185 double rAngle = diamond_angle(ry, rx);
/external/chromium_org/ui/gfx/geometry/
H A Drect_base_impl.h172 Type ry = std::max(y(), rect.y()); local
176 if (rx >= rr || ry >= rb)
177 rx = ry = rr = rb = 0; // non-intersecting
179 SetRect(rx, ry, rr - rx, rb - ry);
198 Type ry = std::min(y(), rect.y()); local
202 SetRect(rx, ry, rr - rx, rb - ry);
221 Type ry = y(); local
235 ry
[all...]
/external/mesa3d/src/mesa/tnl/
H A Dt_rasterpos.c265 GLfloat u[3], two_nu, rx, ry, rz, m, mInv; local
270 ry = u[1] - normal[1] * two_nu;
272 m = rx * rx + ry * ry + (rz + 1.0F) * (rz + 1.0F);
310 texcoord[1] = ry * mInv + 0.5F;
313 texcoord[1] = ry;
/external/skia/tests/
H A DPathOpsAngleTest.cpp127 static int find_slop(double x, double y, double rx, double ry) { argument
144 double x_ry1 = x1 * ry;
149 double x_ry2 = x2 * ry;
166 // x y rx ry
181 double ry = slopTest[3];
182 SkDebugf("%s xy %d=%d\n", __FUNCTION__, index, find_slop(x, y, rx, ry));
183 SkDebugf("%s rxy %d=%d\n", __FUNCTION__, index, find_slop(rx, ry, x, y));
185 double rAngle = diamond_angle(ry, rx);
/external/chromium_org/third_party/skia/samplecode/
H A DSampleDraw.cpp191 SkScalar ry = fRect.height() / 5; local
192 if (rx < ry) {
193 ry = rx;
195 rx = ry;
197 canvas->drawRoundRect(fRect, rx, ry, fPaint);
/external/chromium_org/third_party/skia/src/gpu/effects/
H A DGrOvalEffect.cpp195 SkScalar ry);
212 EllipseEffect(GrPrimitiveEdgeType, const SkPoint& center, SkScalar rx, SkScalar ry);
228 SkScalar ry) {
229 SkASSERT(rx >= 0 && ry >= 0);
230 return SkNEW_ARGS(EllipseEffect, (edgeType, center, rx, ry));
241 EllipseEffect::EllipseEffect(GrPrimitiveEdgeType edgeType, const SkPoint& c, SkScalar rx, SkScalar ry) argument
243 , fRadii(SkVector::Make(rx, ry))
265 SkScalar ry = random->nextRangeF(0.f, 1000.f); local
270 return EllipseEffect::Create(et, center, rx, ry);
314 // The ellipse uniform is (center.x, center.y, 1 / rx^2, 1 / ry
225 Create(GrPrimitiveEdgeType edgeType, const SkPoint& center, SkScalar rx, SkScalar ry) argument
[all...]
/external/skia/samplecode/
H A DSampleDraw.cpp191 SkScalar ry = fRect.height() / 5; local
192 if (rx < ry) {
193 ry = rx;
195 rx = ry;
197 canvas->drawRoundRect(fRect, rx, ry, fPaint);
/external/skia/src/gpu/effects/
H A DGrOvalEffect.cpp193 static GrEffectRef* Create(GrEffectEdgeType, const SkPoint& center, SkScalar rx, SkScalar ry);
210 EllipseEffect(GrEffectEdgeType, const SkPoint& center, SkScalar rx, SkScalar ry);
226 SkScalar ry) {
227 SkASSERT(rx >= 0 && ry >= 0);
229 (edgeType, center, rx, ry))));
240 EllipseEffect::EllipseEffect(GrEffectEdgeType edgeType, const SkPoint& c, SkScalar rx, SkScalar ry) argument
242 , fRadii(SkVector::Make(rx, ry))
264 SkScalar ry = random->nextRangeF(0.f, 1000.f); local
269 return EllipseEffect::Create(et, center, rx, ry);
313 // The ellipse uniform is (center.x, center.y, 1 / rx^2, 1 / ry
223 Create(GrEffectEdgeType edgeType, const SkPoint& center, SkScalar rx, SkScalar ry) argument
[all...]
/external/deqp/modules/gles31/functional/
H A Des31fStencilTexturingTests.cpp100 const int ry = rects[rectNdx].y(); local
106 const float y0 = float(ry*2)/h - 1.0f;
107 const float y1 = float((ry+rh)*2)/h - 1.0f;
/external/opencv/cv/src/
H A Dcvsubdivision2d.cpp524 float ry = (float) rect.y; local
540 subdiv->topleft = cvPoint2D32f( rx, ry );
541 subdiv->bottomright = cvPoint2D32f( rx + rect.width, ry + rect.height );
543 ppA = cvPoint2D32f( rx + big_coord, ry );
544 ppB = cvPoint2D32f( rx, ry + big_coord );
545 ppC = cvPoint2D32f( rx - big_coord, ry - big_coord );
H A Dcvcalibration.cpp531 double rx, ry, rz, theta; local
543 ry = src->data.fl[step];
549 ry = src->data.db[step];
552 theta = sqrt(rx*rx + ry*ry + rz*rz);
574 rx *= itheta; ry *= itheta; rz *= itheta;
576 double rrt[] = { rx*rx, rx*ry, rx*rz, rx*ry, ry*ry, r
610 double R[9], U[9], V[9], W[3], rx, ry, rz; local
[all...]
/external/chromium_org/third_party/skia/bench/
H A DPathBench.cpp655 SkScalar ry = SkMinScalar(rect.height(), yIn); local
658 arcRect.set(-rx, -ry, rx, ry);
/external/chromium_org/third_party/skia/src/effects/
H A DSkBlurMask.cpp520 int ry = rx; // only do square blur for now local
523 int pady = passCount * ry;
566 h = boxBlur(tp, h, dp, ry, ry, h, w, true);
575 h = boxBlurInterp(tp, h, dp, ry, h, w, false, outerWeight);
576 h = boxBlurInterp(dp, h, tp, ry, h, w, false, outerWeight);
577 h = boxBlurInterp(tp, h, dp, ry, h, w, true, outerWeight);
580 h = boxBlurInterp(tp, h, dp, ry, h, w, true, outerWeight);
596 dp + passCount * (rx + ry * dst->fRowBytes),
600 clamp_with_orig(dp + passCount * (rx + ry * ds
[all...]
/external/chromium_org/third_party/skia/src/gpu/
H A DGrAARectRenderer.cpp771 const SkScalar ry = SkScalarMul(dy, SK_ScalarHalf); local
789 devOutside.outset(rx, ry);
805 devInside.inset(rx, ry);
813 devOutside.inset(0, ry);
814 devOutsideAssist.outset(0, ry);
/external/chromium_org/third_party/skia/src/pathops/
H A DSkOpAngle.cpp221 bool SkOpAngle::calcSlop(double x, double y, double rx, double ry, bool* result) const {
236 double x_ry1 = x1 * ry;
241 double x_ry2 = x2 * ry;
146 SkASSERT(trOrder < 0); SkDEBUGCODE(bool lrOpposite = lh.oppositePlanes(rh)); bool ltOpposite = lh.oppositePlanes(*this); SkASSERT(lrOpposite != ltOpposite); return COMPARE_RESULT(8, ltOpposite); } else if (ltOrder == 1 && trOrder == 0) { SkASSERT(lrOrder < 0); SkDEBUGCODE(bool ltOpposite = lh.oppositePlanes(*this)); bool trOpposite = oppositePlanes(rh); SkASSERT(ltOpposite != trOpposite); return COMPARE_RESULT(9, trOpposite); } else if (lrOrder == 1 && trOrder == 1) { SkASSERT(ltOrder < 0); SkDEBUGCODE(bool trOpposite = oppositePlanes(rh)); bool lrOpposite = lh.oppositePlanes(rh); SkASSERT(lrOpposite != trOpposite); return COMPARE_RESULT(10, lrOpposite); } if (lrOrder < 0) { if (ltOrder < 0) { return COMPARE_RESULT(11, trOrder); } return COMPARE_RESULT(12, ltOrder); } return COMPARE_RESULT(13, !lrOrder); } int SkOpAngle::allOnOneSide(const SkOpAngle& test) const { SkASSERT(!fIsCurve); SkASSERT(test.fIsCurve); const SkDPoint& origin = test.fCurvePart[0]; SkVector line; if (fSegment->verb() == SkPath::kLine_Verb) { const SkPoint* linePts = fSegment->pts(); int lineStart = fStart < fEnd ? 0 : 1; line = linePts[lineStart ^ 1] - linePts[lineStart]; } else { SkPoint shortPts[2] = { fCurvePart[0].asSkPoint(), fCurvePart[1].asSkPoint() }; line = shortPts[1] - shortPts[0]; } float crosses[3]; SkPath::Verb testVerb = test.fSegment->verb(); int iMax = SkPathOpsVerbToPoints(testVerb); const SkDCubic& testCurve = test.fCurvePart; for (int index = 1; index <= iMax; ++index) { float xy1 = (float) (line.fX * (testCurve[index].fY - origin.fY)); float xy2 = (float) (line.fY * (testCurve[index].fX - origin.fX)); crosses[index - 1] = AlmostEqualUlps(xy1, xy2) ? 0 : xy1 - xy2; } if (crosses[0] * crosses[1] < 0) { return -1; } if (SkPath::kCubic_Verb == testVerb) { if (crosses[0] * crosses[2] < 0 || crosses[1] * crosses[2] < 0) { return -1; } } if (crosses[0]) { return crosses[0] < 0; } if (crosses[1]) { return crosses[1] < 0; } if (SkPath::kCubic_Verb == testVerb && crosses[2]) { return crosses[2] < 0; } fUnorderable = true; return -1; } bool SkOpAngle::calcSlop(double x, double y, double rx, double ry, bool* result) const { double absX = fabs(x); double absY = fabs(y); double length = absX < absY ? absX / 2 + absY : absX + absY / 2; int exponent; (void) frexp(length, &exponent); double epsilon = ldexp(FLT_EPSILON, exponent); SkPath::Verb verb = fSegment->verb(); SkASSERT(verb == SkPath::kQuad_Verb || verb == SkPath::kCubic_Verb); double slop = verb == SkPath::kQuad_Verb ? 4 * epsilon : 512 * epsilon; double xSlop = slop; double ySlop = x * y < 0 ? -xSlop : xSlop; double x1 = x - xSlop; double y1 = y + ySlop; double x_ry1 = x1 * ry; double rx_y1 = rx * y1; *result = x_ry1 < rx_y1; double x2 = x + xSlop; double y2 = y - ySlop; double x_ry2 = x2 * ry; double rx_y2 = rx * y2; bool less2 = x_ry2 < rx_y2; return *result == less2; } bool SkOpAngle::checkCrossesZero() const { int start = SkTMin(fSectorStart, fSectorEnd); int end = SkTMax(fSectorStart, fSectorEnd); bool crossesZero = end - start > 16; return crossesZero; } bool SkOpAngle::checkParallel(const SkOpAngle& rh) const { SkDVector scratch[2]; const SkDVector* sweep, * tweep; if (!fUnorderedSweep) { sweep = fSweep; } else { scratch[0] = fCurvePart[1] - fCurvePart[0]; sweep = &scratch[0]; } if (!rh.fUnorderedSweep) { tweep = rh.fSweep; } else { scratch[1] = rh.fCurvePart[1] - rh.fCurvePart[0]; tweep = &scratch[1]; } double s0xt0 = sweep->crossCheck(*tweep); if (tangentsDiverge(rh, s0xt0)) { return s0xt0 < 0; } SkDVector m0 = fSegment->dPtAtT(midT()) - fCurvePart[0]; SkDVector m1 = rh.fSegment->dPtAtT(rh.midT()) - rh.fCurvePart[0]; double m0xm1 = m0.crossCheck(m1); if (m0xm1 == 0) { fUnorderable = true; rh.fUnorderable = true; return true; } return m0xm1 < 0; } bool SkOpAngle::computeSector() { if (fComputedSector) { return !fUnorderable; } fComputedSector = true; int step = fStart < fEnd ? 1 : -1; int limit = step > 0 ? fSegment->count() : -1; int checkEnd = fEnd; do { const SkOpSpan& span = fSegment->span(checkEnd); const SkOpSegment* other = span.fOther; int oCount = other->count(); for (int oIndex = 0; oIndex < oCount; ++oIndex) { const SkOpSpan& oSpan = other->span(oIndex); if (oSpan.fOther != fSegment) { continue; } if (oSpan.fOtherIndex == checkEnd) { continue; } if (!approximately_equal(oSpan.fOtherT, span.fT)) { continue; } goto recomputeSector; } checkEnd += step; } while (checkEnd != limit); recomputeSector: if (checkEnd == fEnd || checkEnd - step == fEnd) { fUnorderable = true; return false; } int saveEnd = fEnd; fComputedEnd = fEnd = checkEnd - step; setSpans(); setSector(); fEnd = saveEnd; return !fUnorderable; } int SkOpAngle::convexHullOverlaps(const SkOpAngle& rh) const { const SkDVector* sweep = fSweep; const SkDVector* tweep = rh.fSweep; double s0xs1 = sweep[0].crossCheck(sweep[1]); double s0xt0 = sweep[0].crossCheck(tweep[0]); double s1xt0 = sweep[1].crossCheck(tweep[0]); bool tBetweenS = s0xs1 > 0 ? s0xt0 > 0 && s1xt0 < 0 : s0xt0 < 0 && s1xt0 > 0; double s0xt1 = sweep[0].crossCheck(tweep[1]); double s1xt1 = sweep[1].crossCheck(tweep[1]); tBetweenS |= s0xs1 > 0 ? s0xt1 > 0 && s1xt1 < 0 : s0xt1 < 0 && s1xt1 > 0; double t0xt1 = tweep[0].crossCheck(tweep[1]); if (tBetweenS) { return -1; } if ((s0xt0 == 0 && s1xt1 == 0) || (s1xt0 == 0 && s0xt1 == 0)) { return -1; } bool sBetweenT = t0xt1 > 0 ? s0xt0 < 0 && s0xt1 > 0 : s0xt0 > 0 && s0xt1 < 0; sBetweenT |= t0xt1 > 0 ? s1xt0 < 0 && s1xt1 > 0 : s1xt0 > 0 && s1xt1 < 0; if (sBetweenT) { return -1; } if (s0xt0 >= 0 && s0xt1 >= 0 && s1xt0 >= 0 && s1xt1 >= 0) argument
/external/chromium_org/ui/views/touchui/
H A Dtouch_selection_controller_impl.cc102 int ry = std::min(r1.y(), r2.y()); local
106 return gfx::Rect(rx, ry, rr - rx, rb - ry);
/external/pdfium/core/src/fxcodec/lcms2/lcms2-2.6/src/
H A Dcmsintrp.c393 register int rx, ry; local
409 ry = FIXED_REST_TO_INT(fy);
428 dxy = LERP(ry, dx0, dx1);
524 register int rx, ry, rz; local
541 ry = FIXED_REST_TO_INT(fy);
575 dxy0 = LERP(ry, dx00, dx10);
576 dxy1 = LERP(ry, dx01, dx11);
600 cmsFloat32Number rx, ry, rz; local
612 y0 = (int) _cmsQuickFloor(py); ry = (py - (cmsFloat32Number) y0);
631 if (rx >= ry
699 cmsS15Fixed16Number rx, ry, rz; local
836 cmsS15Fixed16Number rx, ry, rz; local
[all...]
/external/pixman/pixman/
H A Dpixman-bits-image.c386 int ry = i; local
397 repeat (repeat_mode, &ry, height);
399 pixel = get_pixel (image, rx, ry, FALSE);
403 pixel = get_pixel (image, rx, ry, TRUE);
484 int ry = i; local
494 repeat (repeat_mode, &ry, height);
496 pixel = get_pixel (image, rx, ry, FALSE);
500 pixel = get_pixel (image, rx, ry, TRUE);
810 int ry = i; local
823 repeat (repeat_mode, &ry, bit
[all...]
/external/qemu/android/skin/
H A Dtrackball.c322 double ry = y0/radius; local
323 double rz = sqrt( 1.0 - rx*rx - ry*ry );
330 coord->f[1] = FIX16_FROM_FLOAT(ry);
342 double ly = LIGHT_Y - ry;
345 double cosphi = lir*(lx*rx + ly*ry + lz*rz);
/external/skia/bench/
H A DPathBench.cpp655 SkScalar ry = SkMinScalar(rect.height(), yIn); local
658 arcRect.set(-rx, -ry, rx, ry);
/external/skia/src/effects/
H A DSkBlurMask.cpp520 int ry = rx; // only do square blur for now local
523 int pady = passCount * ry;
566 h = boxBlur(tp, h, dp, ry, ry, h, w, true);
575 h = boxBlurInterp(tp, h, dp, ry, h, w, false, outerWeight);
576 h = boxBlurInterp(dp, h, tp, ry, h, w, false, outerWeight);
577 h = boxBlurInterp(tp, h, dp, ry, h, w, true, outerWeight);
580 h = boxBlurInterp(tp, h, dp, ry, h, w, true, outerWeight);
596 dp + passCount * (rx + ry * dst->fRowBytes),
600 clamp_with_orig(dp + passCount * (rx + ry * ds
[all...]
/external/skia/src/gpu/
H A DGrAARectRenderer.cpp744 const SkScalar ry = SkScalarMul(dy, SK_ScalarHalf); local
762 devOutside.outset(rx, ry);
777 devInside.inset(rx, ry);
785 devOutside.inset(0, ry);
786 devOutsideAssist.outset(0, ry);
/external/skia/src/pathops/
H A DSkOpAngle.cpp221 bool SkOpAngle::calcSlop(double x, double y, double rx, double ry, bool* result) const {
236 double x_ry1 = x1 * ry;
241 double x_ry2 = x2 * ry;
146 SkASSERT(trOrder < 0); SkDEBUGCODE(bool lrOpposite = lh.oppositePlanes(rh)); bool ltOpposite = lh.oppositePlanes(*this); SkASSERT(lrOpposite != ltOpposite); return COMPARE_RESULT(8, ltOpposite); } else if (ltOrder == 1 && trOrder == 0) { SkASSERT(lrOrder < 0); SkDEBUGCODE(bool ltOpposite = lh.oppositePlanes(*this)); bool trOpposite = oppositePlanes(rh); SkASSERT(ltOpposite != trOpposite); return COMPARE_RESULT(9, trOpposite); } else if (lrOrder == 1 && trOrder == 1) { SkASSERT(ltOrder < 0); SkDEBUGCODE(bool trOpposite = oppositePlanes(rh)); bool lrOpposite = lh.oppositePlanes(rh); SkASSERT(lrOpposite != trOpposite); return COMPARE_RESULT(10, lrOpposite); } if (lrOrder < 0) { if (ltOrder < 0) { return COMPARE_RESULT(11, trOrder); } return COMPARE_RESULT(12, ltOrder); } return COMPARE_RESULT(13, !lrOrder); } int SkOpAngle::allOnOneSide(const SkOpAngle& test) const { SkASSERT(!fIsCurve); SkASSERT(test.fIsCurve); const SkDPoint& origin = test.fCurvePart[0]; SkVector line; if (fSegment->verb() == SkPath::kLine_Verb) { const SkPoint* linePts = fSegment->pts(); int lineStart = fStart < fEnd ? 0 : 1; line = linePts[lineStart ^ 1] - linePts[lineStart]; } else { SkPoint shortPts[2] = { fCurvePart[0].asSkPoint(), fCurvePart[1].asSkPoint() }; line = shortPts[1] - shortPts[0]; } float crosses[3]; SkPath::Verb testVerb = test.fSegment->verb(); int iMax = SkPathOpsVerbToPoints(testVerb); const SkDCubic& testCurve = test.fCurvePart; for (int index = 1; index <= iMax; ++index) { float xy1 = (float) (line.fX * (testCurve[index].fY - origin.fY)); float xy2 = (float) (line.fY * (testCurve[index].fX - origin.fX)); crosses[index - 1] = AlmostEqualUlps(xy1, xy2) ? 0 : xy1 - xy2; } if (crosses[0] * crosses[1] < 0) { return -1; } if (SkPath::kCubic_Verb == testVerb) { if (crosses[0] * crosses[2] < 0 || crosses[1] * crosses[2] < 0) { return -1; } } if (crosses[0]) { return crosses[0] < 0; } if (crosses[1]) { return crosses[1] < 0; } if (SkPath::kCubic_Verb == testVerb && crosses[2]) { return crosses[2] < 0; } fUnorderable = true; return -1; } bool SkOpAngle::calcSlop(double x, double y, double rx, double ry, bool* result) const { double absX = fabs(x); double absY = fabs(y); double length = absX < absY ? absX / 2 + absY : absX + absY / 2; int exponent; (void) frexp(length, &exponent); double epsilon = ldexp(FLT_EPSILON, exponent); SkPath::Verb verb = fSegment->verb(); SkASSERT(verb == SkPath::kQuad_Verb || verb == SkPath::kCubic_Verb); double slop = verb == SkPath::kQuad_Verb ? 4 * epsilon : 512 * epsilon; double xSlop = slop; double ySlop = x * y < 0 ? -xSlop : xSlop; double x1 = x - xSlop; double y1 = y + ySlop; double x_ry1 = x1 * ry; double rx_y1 = rx * y1; *result = x_ry1 < rx_y1; double x2 = x + xSlop; double y2 = y - ySlop; double x_ry2 = x2 * ry; double rx_y2 = rx * y2; bool less2 = x_ry2 < rx_y2; return *result == less2; } bool SkOpAngle::checkCrossesZero() const { int start = SkTMin(fSectorStart, fSectorEnd); int end = SkTMax(fSectorStart, fSectorEnd); bool crossesZero = end - start > 16; return crossesZero; } bool SkOpAngle::checkParallel(const SkOpAngle& rh) const { SkDVector scratch[2]; const SkDVector* sweep, * tweep; if (!fUnorderedSweep) { sweep = fSweep; } else { scratch[0] = fCurvePart[1] - fCurvePart[0]; sweep = &scratch[0]; } if (!rh.fUnorderedSweep) { tweep = rh.fSweep; } else { scratch[1] = rh.fCurvePart[1] - rh.fCurvePart[0]; tweep = &scratch[1]; } double s0xt0 = sweep->crossCheck(*tweep); if (tangentsDiverge(rh, s0xt0)) { return s0xt0 < 0; } SkDVector m0 = fSegment->dPtAtT(midT()) - fCurvePart[0]; SkDVector m1 = rh.fSegment->dPtAtT(rh.midT()) - rh.fCurvePart[0]; double m0xm1 = m0.crossCheck(m1); if (m0xm1 == 0) { fUnorderable = true; rh.fUnorderable = true; return true; } return m0xm1 < 0; } bool SkOpAngle::computeSector() { if (fComputedSector) { return !fUnorderable; } SkASSERT(fSegment->verb() != SkPath::kLine_Verb && small()); fComputedSector = true; int step = fStart < fEnd ? 1 : -1; int limit = step > 0 ? fSegment->count() : -1; int checkEnd = fEnd; do { const SkOpSpan& span = fSegment->span(checkEnd); const SkOpSegment* other = span.fOther; int oCount = other->count(); for (int oIndex = 0; oIndex < oCount; ++oIndex) { const SkOpSpan& oSpan = other->span(oIndex); if (oSpan.fOther != fSegment) { continue; } if (oSpan.fOtherIndex == checkEnd) { continue; } if (!approximately_equal(oSpan.fOtherT, span.fT)) { continue; } goto recomputeSector; } checkEnd += step; } while (checkEnd != limit); recomputeSector: if (checkEnd == fEnd || checkEnd - step == fEnd) { fUnorderable = true; return false; } int saveEnd = fEnd; fComputedEnd = fEnd = checkEnd - step; setSpans(); setSector(); fEnd = saveEnd; return !fUnorderable; } int SkOpAngle::convexHullOverlaps(const SkOpAngle& rh) const { const SkDVector* sweep = fSweep; const SkDVector* tweep = rh.fSweep; double s0xs1 = sweep[0].crossCheck(sweep[1]); double s0xt0 = sweep[0].crossCheck(tweep[0]); double s1xt0 = sweep[1].crossCheck(tweep[0]); bool tBetweenS = s0xs1 > 0 ? s0xt0 > 0 && s1xt0 < 0 : s0xt0 < 0 && s1xt0 > 0; double s0xt1 = sweep[0].crossCheck(tweep[1]); double s1xt1 = sweep[1].crossCheck(tweep[1]); tBetweenS |= s0xs1 > 0 ? s0xt1 > 0 && s1xt1 < 0 : s0xt1 < 0 && s1xt1 > 0; double t0xt1 = tweep[0].crossCheck(tweep[1]); if (tBetweenS) { return -1; } if ((s0xt0 == 0 && s1xt1 == 0) || (s1xt0 == 0 && s0xt1 == 0)) { return -1; } bool sBetweenT = t0xt1 > 0 ? s0xt0 < 0 && s0xt1 > 0 : s0xt0 > 0 && s0xt1 < 0; sBetweenT |= t0xt1 > 0 ? s1xt0 < 0 && s1xt1 > 0 : s1xt0 > 0 && s1xt1 < 0; if (sBetweenT) { return -1; } if (s0xt0 >= 0 && s0xt1 >= 0 && s1xt0 >= 0 && s1xt1 >= 0) argument
/external/chromium_org/third_party/WebKit/Source/platform/transforms/
H A DTransformationMatrix.cpp419 // easier to recompose with) or Euler angles (rx, ry, rz), which
846 TransformationMatrix& TransformationMatrix::rotate3d(double rx, double ry, double rz) argument
850 ry = deg2rad(ry);
873 sinTheta = std::sin(ry);
874 cosTheta = std::cos(ry);
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/gallivm/
H A Dlp_bld_sample.c1000 LLVMValueRef rx, ry, rz; local
1036 ry = LLVMBuildBitCast(builder, t, lp_build_vec_type(gallivm, intctype), "");
1038 ryneg = LLVMBuildXor(builder, ry, signmask, "");
1061 * tnewx = -ry;
1065 * tnewz = -ry;
1194 ry = LLVMBuildExtractElement(builder, rxyz,
1196 sign = lp_build_sgn(float_bld, ry);
1200 *face = lp_build_cube_face(bld, ry,

Completed in 660 milliseconds

123