Home
last modified time | relevance | path

Searched refs:angle (Results 1 – 25 of 570) sorted by relevance

12345678910>>...23

/external/freetype/src/autofit/
Dafangles.c48 AF_Angle angle;
61 angle = 0;
64 angle = ( AF_ANGLE_PI2 * dy ) / ( ax + ay );
67 if ( angle >= 0 )
68 angle = AF_ANGLE_PI - angle;
70 angle = -AF_ANGLE_PI - angle;
74 return angle;
127 AF_Angle angle; in af_angle_atan() local
133 angle = 0; in af_angle_atan()
135 angle = AF_ANGLE_PI; in af_angle_atan()
[all …]
/external/skia/src/pathops/
DSkPathOpsCommon.cpp20 const SkOpAngle* angle = segment->spanToAngle(start, end); in AngleWinding() local
21 if (!angle) { in AngleWinding()
26 const SkOpAngle* firstAngle = angle; in AngleWinding()
31 angle = angle->next(); in AngleWinding()
32 if (!angle) { in AngleWinding()
35 unorderable |= angle->unorderable(); in AngleWinding()
36 if ((computeWinding = unorderable || (angle == firstAngle && loop))) { in AngleWinding()
39 loop |= angle == firstAngle; in AngleWinding()
40 segment = angle->segment(); in AngleWinding()
41 winding = segment->windSum(angle); in AngleWinding()
[all …]
DSkOpSegment.cpp303 SkOpAngle* angle = this->globalState()->allocator()->make<SkOpAngle>(); in calcAngles() local
304 angle->set(span, next); in calcAngles()
305 span->setToAngle(angle); in calcAngles()
430 SkOpAngle* angle = firstAngle->previous(); in computeSum() local
431 SkOpAngle* next = angle->next(); in computeSum()
434 SkOpAngle* prior = angle; in computeSum()
435 angle = next; in computeSum()
436 next = angle->next(); in computeSum()
437 SkASSERT(prior->next() == angle); in computeSum()
438 SkASSERT(angle->next() == next); in computeSum()
[all …]
DSkOpSegment.h63 SkOpAngle* angle = this->globalState()->allocator()->make<SkOpAngle>(); in addEndSpan() local
64 angle->set(&fTail, fTail.prev()); in addEndSpan()
65 fTail.setFromAngle(angle); in addEndSpan()
66 return angle; in addEndSpan()
81 SkOpAngle* angle = this->globalState()->allocator()->make<SkOpAngle>(); in addStartSpan() local
82 angle->set(&fHead, fHead.next()); in addStartSpan()
83 fHead.setToAngle(angle); in addStartSpan()
84 return angle; in addStartSpan()
194 bool done(const SkOpAngle* angle) const { in done() argument
195 return angle->start()->starter(angle->end())->done(); in done()
[all …]
DSkPathOpsOp.cpp41 const SkOpAngle* angle = AngleWinding(*startPtr, *endPtr, &winding, &sortable); in findChaseOp() local
42 if (!angle) { in findChaseOp()
51 segment = angle->segment(); in findChaseOp()
52 sumMiWinding = segment->updateWindingReverse(angle); in findChaseOp()
58 sumSuWinding = segment->updateOppWindingReverse(angle); in findChaseOp()
70 const SkOpAngle* firstAngle = angle; in findChaseOp()
71 while ((angle = angle->next()) != firstAngle) { in findChaseOp()
72 segment = angle->segment(); in findChaseOp()
73 SkOpSpanBase* start = angle->start(); in findChaseOp()
74 SkOpSpanBase* end = angle->end(); in findChaseOp()
[all …]
/external/skqp/src/pathops/
DSkPathOpsCommon.cpp20 const SkOpAngle* angle = segment->spanToAngle(start, end); in AngleWinding() local
21 if (!angle) { in AngleWinding()
26 const SkOpAngle* firstAngle = angle; in AngleWinding()
31 angle = angle->next(); in AngleWinding()
32 if (!angle) { in AngleWinding()
35 unorderable |= angle->unorderable(); in AngleWinding()
36 if ((computeWinding = unorderable || (angle == firstAngle && loop))) { in AngleWinding()
39 loop |= angle == firstAngle; in AngleWinding()
40 segment = angle->segment(); in AngleWinding()
41 winding = segment->windSum(angle); in AngleWinding()
[all …]
DSkOpSegment.cpp303 SkOpAngle* angle = this->globalState()->allocator()->make<SkOpAngle>(); in calcAngles() local
304 angle->set(span, next); in calcAngles()
305 span->setToAngle(angle); in calcAngles()
430 SkOpAngle* angle = firstAngle->previous(); in computeSum() local
431 SkOpAngle* next = angle->next(); in computeSum()
434 SkOpAngle* prior = angle; in computeSum()
435 angle = next; in computeSum()
436 next = angle->next(); in computeSum()
437 SkASSERT(prior->next() == angle); in computeSum()
438 SkASSERT(angle->next() == next); in computeSum()
[all …]
DSkOpSegment.h63 SkOpAngle* angle = this->globalState()->allocator()->make<SkOpAngle>(); in addEndSpan() local
64 angle->set(&fTail, fTail.prev()); in addEndSpan()
65 fTail.setFromAngle(angle); in addEndSpan()
66 return angle; in addEndSpan()
81 SkOpAngle* angle = this->globalState()->allocator()->make<SkOpAngle>(); in addStartSpan() local
82 angle->set(&fHead, fHead.next()); in addStartSpan()
83 fHead.setToAngle(angle); in addStartSpan()
84 return angle; in addStartSpan()
194 bool done(const SkOpAngle* angle) const { in done() argument
195 return angle->start()->starter(angle->end())->done(); in done()
[all …]
/external/libaom/libaom/av1/common/
Dreconintra.h83 static INLINE int av1_get_dx(int angle) { in av1_get_dx() argument
84 if (angle > 0 && angle < 90) { in av1_get_dx()
85 return dr_intra_derivative[angle]; in av1_get_dx()
86 } else if (angle > 90 && angle < 180) { in av1_get_dx()
87 return dr_intra_derivative[180 - angle]; in av1_get_dx()
98 static INLINE int av1_get_dy(int angle) { in av1_get_dy() argument
99 if (angle > 90 && angle < 180) { in av1_get_dy()
100 return dr_intra_derivative[angle - 90]; in av1_get_dy()
101 } else if (angle > 180 && angle < 270) { in av1_get_dy()
102 return dr_intra_derivative[270 - angle]; in av1_get_dy()
/external/ImageMagick/Magick++/demo/
Dgravity.cpp56 for ( int angle = 0; angle < 360; angle += 30 ) in main() local
58 cout << "angle " << angle << endl; in main()
60 pic.annotate( "NorthWest", Geometry(0,0,x,y), NorthWestGravity, angle ); in main()
61 pic.annotate( "North", Geometry(0,0,0,y), NorthGravity, angle ); in main()
62 pic.annotate( "NorthEast", Geometry(0,0,x,y), NorthEastGravity, angle ); in main()
63 pic.annotate( "East", Geometry(0,0,x,0), EastGravity, angle ); in main()
64 pic.annotate( "Center", Geometry(0,0,0,0), CenterGravity, angle ); in main()
65 pic.annotate( "SouthEast", Geometry(0,0,x,y), SouthEastGravity, angle ); in main()
66 pic.annotate( "South", Geometry(0,0,0,y), SouthGravity, angle ); in main()
67 pic.annotate( "SouthWest", Geometry(0,0,x,y), SouthWestGravity, angle ); in main()
[all …]
/external/fonttools/Tests/ufoLib/
DtestSupport.py545 dict(x=100, y=200, angle=45),
547 dict(x=100.5, y=200.5, angle=45.5),
549 dict(x=0, y=0, angle=0),
550 dict(x=0, y=0, angle=360),
551 dict(x=0, y=0, angle=360.0),
557 dict(x=100, y=200, angle=45, name="foo"),
558 dict(x=100, y=200, angle=45, name=""),
560 dict(x=100, y=200, angle=45, identifier="guide1"),
561 dict(x=100, y=200, angle=45, identifier="guide2"),
562 dict(x=100, y=200, angle=45, identifier="\x20"),
[all …]
/external/libaom/libaom/test/
Ddr_prediction_test.cc309 for (int angle = start_angle_; angle < stop_angle_; ++angle) { in TEST_P() local
310 dx_ = av1_get_dx(angle); in TEST_P()
311 dy_ = av1_get_dy(angle); in TEST_P()
312 if (dx_ && dy_) RunTest(false, true, angle); in TEST_P()
332 for (int angle = start_angle_; angle < stop_angle_; ++angle) { in TEST_P() local
333 dx_ = av1_get_dx(angle); in TEST_P()
334 dy_ = av1_get_dy(angle); in TEST_P()
335 if (dx_ && dy_) RunTest(false, true, angle); in TEST_P()
381 const int angle = angles[i] + start_angle_; in TEST_P() local
382 dx_ = av1_get_dx(angle); in TEST_P()
[all …]
/external/libxcam/xcore/
Dxcam_utils.cpp92 float angle; in bowl_view_image_to_world() local
106 angle = degree2radian (config.angle_start + img_pos.x * angle_step); in bowl_view_image_to_world()
109 if(XCAM_DOUBLE_EQUAL_AROUND (angle, PI / 2)) { in bowl_view_image_to_world()
112 } else if (XCAM_DOUBLE_EQUAL_AROUND (angle, PI * 3 / 2)) { in bowl_view_image_to_world()
115 } else if((angle < PI / 2) || (angle > PI * 3 / 2)) { in bowl_view_image_to_world()
116 world.x = sqrt(r2 * a * a * b * b / (b * b + a * a * tan(angle) * tan(angle))); in bowl_view_image_to_world()
117 world.y = -world.x * tan(angle); in bowl_view_image_to_world()
119 world.x = -sqrt(r2 * a * a * b * b / (b * b + a * a * tan(angle) * tan(angle))); in bowl_view_image_to_world()
120 world.y = -world.x * tan(angle); in bowl_view_image_to_world()
133 angle = degree2radian (config.angle_start + img_pos.x * angle_step); in bowl_view_image_to_world()
[all …]
/external/eigen/unsupported/test/
Dmatrix_exponential.cpp30 T angle; in test2dRotation() local
35 angle = static_cast<T>(pow(10, i / 5. - 2)); in test2dRotation()
36 B << std::cos(angle), std::sin(angle), -std::sin(angle), std::cos(angle); in test2dRotation()
38 C = (angle*A).matrixFunction(expfn); in test2dRotation()
42 C = (angle*A).exp(); in test2dRotation()
53 T angle, ch, sh; in test2dHyperbolicRotation() local
57 angle = static_cast<T>((i-10) / 2.0); in test2dHyperbolicRotation()
58 ch = std::cosh(angle); in test2dHyperbolicRotation()
59 sh = std::sinh(angle); in test2dHyperbolicRotation()
60 A << 0, angle*imagUnit, -angle*imagUnit, 0; in test2dHyperbolicRotation()
Dmatrix_power.cpp16 T angle, c, s; in test2dRotation() local
22 angle = std::pow(T(10), (i-10) / T(5.)); in test2dRotation()
23 c = std::cos(angle); in test2dRotation()
24 s = std::sin(angle); in test2dRotation()
27 C = Apow(std::ldexp(angle,1) / T(EIGEN_PI)); in test2dRotation()
37 T angle, ch = std::cosh((T)1); in test2dHyperbolicRotation() local
44 angle = std::ldexp(static_cast<T>(i-10), -1); in test2dHyperbolicRotation()
45 ch = std::cosh(angle); in test2dHyperbolicRotation()
46 ish = std::complex<T>(0, std::sinh(angle)); in test2dHyperbolicRotation()
49 C = Apow(angle); in test2dHyperbolicRotation()
[all …]
/external/ImageMagick/PerlMagick/demo/
Dannotate.pl8 for ($angle=0; $angle < 360; $angle+=30)
12 print "angle $angle\n";
20 undercolor=>'yellow',rotate=>$angle);
24 $label->Annotate(text=>"West",gravity=>"West",x=>$x,rotate=>$angle);
25 $label->Annotate(text=>"Center",gravity=>"Center",rotate=>$angle);
26 $label->Annotate(text=>"East",gravity=>"East",x=>$x,rotate=>$angle);
Dcomposite.pl11 for ($angle=0; $angle < 360; $angle+=30)
15 print "angle $angle\n";
27 $thumbnail->Composite(image=>$smile,gravity=>"West",x=>$x,rotate=>$angle);
28 $thumbnail->Composite(image=>$smile,gravity=>"Center",rotate=>$angle);
29 $thumbnail->Composite(image=>$smile,gravity=>"East",x=>$x,rotate=>$angle);
/external/libxcam/xcore/base/
Dxcam_common.h105 format_angle (float angle) in format_angle() argument
107 if (angle < 0.0f) in format_angle()
108 angle += 360.0f; in format_angle()
109 if (angle >= 360.0f) in format_angle()
110 angle -= 360.0f; in format_angle()
112 XCAM_ASSERT (angle >= 0.0f && angle < 360.0f); in format_angle()
113 return angle; in format_angle()
/external/freetype/include/freetype/
Dfttrigon.h124 FT_Sin( FT_Angle angle );
148 FT_Cos( FT_Angle angle );
168 FT_Tan( FT_Angle angle );
245 FT_Angle angle );
267 FT_Angle angle );
314 FT_Angle *angle );
340 FT_Angle angle );
/external/freetype/src/base/
Dfttrigon.c298 FT_Cos( FT_Angle angle ) in FT_Cos() argument
303 FT_Vector_Unit( &v, angle ); in FT_Cos()
312 FT_Sin( FT_Angle angle ) in FT_Sin() argument
317 FT_Vector_Unit( &v, angle ); in FT_Sin()
326 FT_Tan( FT_Angle angle ) in FT_Tan() argument
331 ft_trig_pseudo_rotate( &v, angle ); in FT_Tan()
362 FT_Angle angle ) in FT_Vector_Unit() argument
369 ft_trig_pseudo_rotate( vec, angle ); in FT_Vector_Unit()
379 FT_Angle angle ) in FT_Vector_Rotate() argument
385 if ( !vec || !angle ) in FT_Vector_Rotate()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DCalendarAstronomer.java1245 double angle = func.eval();
1248 double factor = Math.abs(deltaT / normPI(angle-lastAngle));
1251 deltaT = normPI(desired - angle) * factor;
1281 lastAngle = angle;
1311 double angle = Math.acos(-tanL * Math.tan(pos.declination));
1312 double lst = ((rise ? PI2-angle : angle) + pos.ascension ) * 24 / PI2;
1349 private static final double norm2PI(double angle) {
1350 return normalize(angle, PI2);
1356 private static final double normPI(double angle) {
1357 return normalize(angle + PI, PI2) - PI;
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DCalendarAstronomer.java1239 double angle = func.eval();
1242 double factor = Math.abs(deltaT / normPI(angle-lastAngle));
1245 deltaT = normPI(desired - angle) * factor;
1275 lastAngle = angle;
1305 double angle = Math.acos(-tanL * Math.tan(pos.declination));
1306 double lst = ((rise ? PI2-angle : angle) + pos.ascension ) * 24 / PI2;
1343 private static final double norm2PI(double angle) {
1344 return normalize(angle, PI2);
1350 private static final double normPI(double angle) {
1351 return normalize(angle + PI, PI2) - PI;
[all …]
/external/skia/resources/lua/
Dslides_transitions.lua127 angle = 0,
139 canvas:rotate(self.angle)
145 isDone = function (self) return self.angle >= 360 or self.angle <= -360 end
149 self.angle = self.angle + 10
150 if self.angle >= 180 then
156 self.angle = self.angle - 10
157 if self.angle <= -180 then
/external/skqp/resources/lua/
Dslides_transitions.lua127 angle = 0,
139 canvas:rotate(self.angle)
145 isDone = function (self) return self.angle >= 360 or self.angle <= -360 end
149 self.angle = self.angle + 10
150 if self.angle >= 180 then
156 self.angle = self.angle - 10
157 if self.angle <= -180 then
/external/skqp/platform_tools/android/apps/skqp/src/main/assets/resources/lua/
Dslides_transitions.lua127 angle = 0,
139 canvas:rotate(self.angle)
145 isDone = function (self) return self.angle >= 360 or self.angle <= -360 end
149 self.angle = self.angle + 10
150 if self.angle >= 180 then
156 self.angle = self.angle - 10
157 if self.angle <= -180 then

12345678910>>...23