Home
last modified time | relevance | path

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

12345678910>>...22

/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.cpp40 const SkOpAngle* angle = segment->spanToAngle(start, end); in AngleWinding() local
41 if (!angle) { in AngleWinding()
46 const SkOpAngle* firstAngle = angle; in AngleWinding()
51 angle = angle->next(); in AngleWinding()
52 if (!angle) { in AngleWinding()
55 unorderable |= angle->unorderable(); in AngleWinding()
56 if ((computeWinding = unorderable || (angle == firstAngle && loop))) { in AngleWinding()
59 loop |= angle == firstAngle; in AngleWinding()
60 segment = angle->segment(); in AngleWinding()
61 winding = segment->windSum(angle); in AngleWinding()
[all …]
DSkOpSegment.cpp298 SkOpAngle* angle = this->globalState()->allocator()->make<SkOpAngle>(); in calcAngles() local
299 angle->set(span, next); in calcAngles()
300 span->setToAngle(angle); in calcAngles()
412 SkOpAngle* angle = firstAngle->previous(); in computeSum() local
413 SkOpAngle* next = angle->next(); in computeSum()
416 SkOpAngle* prior = angle; in computeSum()
417 angle = next; in computeSum()
418 next = angle->next(); in computeSum()
419 SkASSERT(prior->next() == angle); in computeSum()
420 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.cpp38 const SkOpAngle* angle = AngleWinding(*startPtr, *endPtr, &winding, &sortable); in findChaseOp() local
39 if (!angle) { in findChaseOp()
47 segment = angle->segment(); in findChaseOp()
48 sumMiWinding = segment->updateWindingReverse(angle); in findChaseOp()
53 sumSuWinding = segment->updateOppWindingReverse(angle); in findChaseOp()
63 const SkOpAngle* firstAngle = angle; in findChaseOp()
64 while ((angle = angle->next()) != firstAngle) { in findChaseOp()
65 segment = angle->segment(); in findChaseOp()
66 SkOpSpanBase* start = angle->start(); in findChaseOp()
67 SkOpSpanBase* end = angle->end(); in findChaseOp()
[all …]
/external/skqp/src/pathops/
DSkPathOpsCommon.cpp40 const SkOpAngle* angle = segment->spanToAngle(start, end); in AngleWinding() local
41 if (!angle) { in AngleWinding()
46 const SkOpAngle* firstAngle = angle; in AngleWinding()
51 angle = angle->next(); in AngleWinding()
52 if (!angle) { in AngleWinding()
55 unorderable |= angle->unorderable(); in AngleWinding()
56 if ((computeWinding = unorderable || (angle == firstAngle && loop))) { in AngleWinding()
59 loop |= angle == firstAngle; in AngleWinding()
60 segment = angle->segment(); in AngleWinding()
61 winding = segment->windSum(angle); in AngleWinding()
[all …]
DSkOpSegment.cpp298 SkOpAngle* angle = this->globalState()->allocator()->make<SkOpAngle>(); in calcAngles() local
299 angle->set(span, next); in calcAngles()
300 span->setToAngle(angle); in calcAngles()
412 SkOpAngle* angle = firstAngle->previous(); in computeSum() local
413 SkOpAngle* next = angle->next(); in computeSum()
416 SkOpAngle* prior = angle; in computeSum()
417 angle = next; in computeSum()
418 next = angle->next(); in computeSum()
419 SkASSERT(prior->next() == angle); in computeSum()
420 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/vulkan-validation-layers/libs/glm/gtx/
Drotate_vector.inl16 T const & angle argument
21 T const Cos(cos(angle));
22 T const Sin(sin(angle));
25 T const Cos = cos(radians(angle));
26 T const Sin = sin(radians(angle));
37 T const & angle, argument
41 return detail::tmat3x3<T, P>(glm::rotate(angle, normal)) * v;
47 T angle,
50 const T Cos = cos(radians(angle));
51 const T Sin = sin(radians(angle));
[all …]
Drotate_vector.hpp60 T const & angle);
67 T const & angle,
75 T const & angle,
83 T const & angle);
90 T const & angle);
97 T const & angle);
104 T const & angle);
111 T const & angle);
118 T const & angle);
Dfast_trigonometry.hpp57 GLM_FUNC_DECL T fastSin(const T& angle);
63 GLM_FUNC_DECL T fastCos(const T& angle);
69 GLM_FUNC_DECL T fastTan(const T& angle);
75 GLM_FUNC_DECL T fastAsin(const T& angle);
81 GLM_FUNC_DECL T fastAcos(const T& angle);
93 GLM_FUNC_DECL T fastAtan(const T& angle);
/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/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.pl12 for ($angle=0; $angle < 360; $angle+=30)
16 print "angle $angle\n";
24 undercolor=>'yellow',rotate=>$angle);
28 $label->Annotate(text=>"West",gravity=>"West",x=>$x,rotate=>$angle);
29 $label->Annotate(text=>"Center",gravity=>"Center",rotate=>$angle);
30 $label->Annotate(text=>"East",gravity=>"East",x=>$x,rotate=>$angle);
Dcomposite.pl15 for ($angle=0; $angle < 360; $angle+=30)
19 print "angle $angle\n";
32 $thumbnail->Composite(image=>$smile,gravity=>"West",x=>$x,rotate=>$angle);
33 $thumbnail->Composite(image=>$smile,gravity=>"Center",rotate=>$angle);
34 $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_Vector_Unit( &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()
387 FT_Angle angle ) in FT_Vector_Rotate() argument
393 if ( !vec || !angle ) in FT_Vector_Rotate()
[all …]
/external/vulkan-validation-layers/libs/glm/gtc/
Dreciprocal.hpp58 GLM_FUNC_DECL genType sec(genType const & angle);
65 GLM_FUNC_DECL genType csc(genType const & angle);
72 GLM_FUNC_DECL genType cot(genType const & angle);
96 GLM_FUNC_DECL genType sech(genType const & angle);
102 GLM_FUNC_DECL genType csch(genType const & angle);
108 GLM_FUNC_DECL genType coth(genType const & angle);
Dreciprocal.inl38 genType const & angle argument
43 return genType(1) / glm::cos(angle);
52 genType const & angle
57 return genType(1) / glm::sin(angle);
66 genType const & angle
71 return genType(1) / glm::tan(angle);
123 genType const & angle
128 return genType(1) / glm::cosh(angle);
137 genType const & angle
142 return genType(1) / glm::sinh(angle);
[all …]
/external/vulkan-validation-layers/libs/glm/detail/
Dfunc_trigonometric.hpp74 GLM_FUNC_DECL genType sin(genType const & angle);
84 GLM_FUNC_DECL genType cos(genType const & angle);
93 GLM_FUNC_DECL genType tan(genType const & angle);
147 GLM_FUNC_DECL genType sinh(genType const & angle);
156 GLM_FUNC_DECL genType cosh(genType const & angle);
165 GLM_FUNC_DECL genType tanh(genType const & angle);
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DCalendarAstronomer.java1241 double angle = func.eval();
1244 double factor = Math.abs(deltaT / normPI(angle-lastAngle));
1247 deltaT = normPI(desired - angle) * factor;
1277 lastAngle = angle;
1307 double angle = Math.acos(-tanL * Math.tan(pos.declination));
1308 double lst = ((rise ? PI2-angle : angle) + pos.ascension ) * 24 / PI2;
1345 private static final double norm2PI(double angle) {
1346 return normalize(angle, PI2);
1352 private static final double normPI(double angle) {
1353 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 …]

12345678910>>...22