HomeSort by relevance Sort by last modified time
    Searched full:angle (Results 401 - 425 of 2446) sorted by null

<<11121314151617181920>>

  /frameworks/base/tools/layoutlib/bridge/src/android/graphics/
SweepGradient_Delegate.java 160 // compute angle from each point to the center, and figure out the distance from
180 float angle; local
182 angle = (float) (dy < 0 ? 3 * Math.PI / 2 : Math.PI / 2);
184 angle = (float) (dx < 0 ? Math.PI : 0);
186 angle = (float) Math.atan(dy / dx);
189 angle += Math.PI * 2;
192 angle += Math.PI;
197 data[index++] = getGradientColor((float) (angle / (2 * Math.PI)));
  /frameworks/rs/scriptc/
rs_quaternion.rsh 84 * @param rot angle to rotate by
105 * @param rot angle to rotate by
196 float angle = rsQuaternionDot(q0, q1);
197 if (angle < 0) {
199 angle *= -1.0f;
203 if (angle + 1.0f > 0.05f) {
204 if (1.0f - angle >= 0.05f) {
205 float theta = acos(angle);
  /frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
Matrix3f.java 108 * Sets current values to be a rotation matrix of certain angle
111 * @param rot angle of rotation
148 * Makes the upper 2x2 a rotation matrix of the given angle
150 * @param rot rotation angle
240 * rotation matrix of certain angle about a given axis
242 * @param rot angle of rotation
255 * post-multiplying it with a rotation matrix of given angle
257 * @param rot angle of rotation
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/
Symbols.java 93 // U+00AB: "«" LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
94 // U+00BB: "»" RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
112 // U+2039: "?" SINGLE LEFT-POINTING ANGLE QUOTATION MARK
113 // U+203A: "?" SINGLE RIGHT-POINTING ANGLE QUOTATION MARK
180 // U+00AB: "«" LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
181 // U+00BB: "»" RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
187 // U+2039: "?" SINGLE LEFT-POINTING ANGLE QUOTATION MARK
188 // U+203A: "?" SINGLE RIGHT-POINTING ANGLE QUOTATION MARK
  /prebuilts/ndk/9/platforms/android-19/arch-arm/usr/include/rs/scriptc/
rs_quaternion.rsh 84 * @param rot angle to rotate by
105 * @param rot angle to rotate by
196 float angle = rsQuaternionDot(q0, q1);
197 if (angle < 0) {
199 angle *= -1.0f;
203 if (angle + 1.0f > 0.05f) {
204 if (1.0f - angle >= 0.05f) {
205 float theta = acos(angle);
  /prebuilts/ndk/9/platforms/android-19/arch-mips/usr/include/rs/scriptc/
rs_quaternion.rsh 84 * @param rot angle to rotate by
105 * @param rot angle to rotate by
196 float angle = rsQuaternionDot(q0, q1);
197 if (angle < 0) {
199 angle *= -1.0f;
203 if (angle + 1.0f > 0.05f) {
204 if (1.0f - angle >= 0.05f) {
205 float theta = acos(angle);
  /prebuilts/ndk/9/platforms/android-19/arch-x86/usr/include/rs/scriptc/
rs_quaternion.rsh 84 * @param rot angle to rotate by
105 * @param rot angle to rotate by
196 float angle = rsQuaternionDot(q0, q1);
197 if (angle < 0) {
199 angle *= -1.0f;
203 if (angle + 1.0f > 0.05f) {
204 if (1.0f - angle >= 0.05f) {
205 float theta = acos(angle);
  /prebuilts/sdk/renderscript/include/
rs_quaternion.rsh 84 * @param rot angle to rotate by
105 * @param rot angle to rotate by
196 float angle = rsQuaternionDot(q0, q1);
197 if (angle < 0) {
199 angle *= -1.0f;
203 if (angle + 1.0f > 0.05f) {
204 if (1.0f - angle >= 0.05f) {
205 float theta = acos(angle);
  /prebuilts/sdk/tools/darwin/renderscript/include/
rs_quaternion.rsh 84 * @param rot angle to rotate by
105 * @param rot angle to rotate by
196 float angle = rsQuaternionDot(q0, q1);
197 if (angle < 0) {
199 angle *= -1.0f;
203 if (angle + 1.0f > 0.05f) {
204 if (1.0f - angle >= 0.05f) {
205 float theta = acos(angle);
  /development/samples/OpenGL/HelloOpenGLES20/src/com/example/android/opengl/
MyGLRenderer.java 80 // float angle = 0.090f * ((int) time);
151 * Returns the rotation angle of the triangle shape (mTriangle).
153 * @return - A float representing the rotation angle.
160 * Sets the rotation angle of the triangle shape (mTriangle).
162 public void setAngle(float angle) {
163 mAngle = angle;
  /external/chromium_org/third_party/flot/
jquery.flot.pie.min.js 23 startAngle: 0-2 factor of PI used for starting angle (in radians) i.e 3/2 starts at the top, 0 and 2 have the same result
56 */(function(e){function r(r){function p(t,n,r){l||(l=!0,s=t.getCanvas(),o=e(s).parent(),i=t.getOptions(),t.setData(d(t.getData())))}function d(t){var n=0,r=0,s=0,o=i.series.pie.combine.color,u=[];for(var a=0;a<t.length;++a){var f=t[a].data;e.isArray(f)&&f.length==1&&(f=f[0]),e.isArray(f)?!isNaN(parseFloat(f[1]))&&isFinite(f[1])?f[1]=+f[1]:f[1]=0:!isNaN(parseFloat(f))&&isFinite(f)?f=[1,+f]:f=[1,0],t[a].data=[f]}for(var a=0;a<t.length;++a)n+=t[a].data[0][1];for(var a=0;a<t.length;++a){var f=t[a].data[0][1];f/n<=i.series.pie.combine.threshold&&(r+=f,s++,o||(o=t[a].color))}for(var a=0;a<t.length;++a){var f=t[a].data[0][1];(s<2||f/n>i.series.pie.combine.threshold)&&u.push({data:[[1,f]],color:t[a].color,label:t[a].label,angle:f*Math.PI*2/n,percent:f/(n/100)})}return s>1&&u.push({data:[[1,r]],color:o,label:i.series.pie.combine.label,angle:r*Math.PI*2/n,percent:r/(n/100)}),u}function v(r,s){function y(){c.clearRect(0,0,h,p),o.children().filter(".pieLabel, .pieLabelBackground").remove()}function b(){var e=i.series.pie.shadow.left,t=i.series.pie.shadow.top,n=10,r=i.series.pie.shadow.alpha,s=i.series.pie.radius>1?i.series.pie.radius:u*i.series.pie.radius;if(s>=h/2-e||s*i.series.pie.tilt>=p/2-t||s<=n)return;c.save(),c.translate(e,t),c.globalAlpha=r,c.fillStyle="#000",c.translate(a,f),c.scale(1,i.series.pie.tilt);for(var o=1;o<=n;o++)c.beginPath(),c.arc(0,0,s,0,Math.PI*2,!1),c.fill(),s-=o;c.restore()}function w(){function l(e,t,i){if(e<=0||isNaN(e))return;i?c.fillStyle=t:(c.strokeStyle=t,c.lineJoin="round"),c.beginPath(),Math.abs(e-Math.PI*2)>1e-9&&c.moveTo(0,0),c.arc(0,0,n,r,r+e/2,!1),c.arc(0,0,n,r+e/2,r+e,!1),c.closePath(),r+=e,i?c.fill():c.stroke()}function d(){function l(t,n,s){if(t.data[0][1]==0)return!0;var u=i.legend.labelFormatter,l,c=i.series.pie.label.formatter;u?l=u(t.label,t):l=t.label,c&&(l=c(l,t));var d=(n+t.angle+n)/2,v=a+Math.round(Math.cos(d)*r),m=f+Math.round(Math.sin(d)*r)*i.series.pie.tilt,g="<span class='pieLabel' id='pieLabel"+s+"' style='position:absolute;top:"+m+"px;left:"+v+"px;'>"+l+"</span>";o.append(g);var y=o.children("#pieLabel"+s),b=m-y.height()/2,w=v-y.width()/2;y.css("top",b),y.css("left",w);if(0-b>0||0-w>0||p-(b+y.height())<0||h-(w+y.width())<0)return!1;if(i.series.pie.label.background.opacity!=0){var E=i.series.pie.label.background.color;E==null&&(E=t.color);var S="top:"+b+"px;left:"+w+"px;";e("<div class='pieLabelBackground' style='position:absolute;width:"+y.width()+"px;height:"+y.height()+"px;"+S+"background-color:"+E+";'></div>").css("opacity",i.series.pie.label.background.opacity).insertBefore(y)}return!0}var n=t,r=i.series.pie.label.radius>1?i.series.pie.label.radius:u*i.series.pie.label.radius;for(var s=0;s<v.length;++s){if(v[s].percent>=i.series.pie.label.threshold*100&&!l(v[s],n,s))return!1;n+=v[s].angle}return!0}var t=Math.PI*i.series.pie.startAngle,n=i.series.pie.radius>1?i.series.pie.radius:u*i.series.pie.radius;c.save(),c.translate(a,f),c.scale(1,i.series.pie.tilt),c.save();var r=t;for(var s=0;s<v.length;++s)v[s].startAngle=r,l(v[s].angle,v[s].color,!0);c.restore();if(i.series.pie.stroke.width>0){c.save(),c.lineWidth=i.series.pie.stroke.width,r=t;for(var s=0;s<v.length;++s)l(v[s].angle,i.series.pie.stroke.color,!1);c.restore()}return m(c),c.restore(),i.series.pie.label.show?d():!0}if(!o)return;var h=r.getPlaceholder().width(),p=r.getPlaceholder().height(),d=o.children().filter(".legend").children().width()||0;c=s,l=!1,u=Math.min(h,p/i.series.pie.tilt)/2,f=p/2+i.series.pie.offset.top,a=h/2,i.series.pie.offset.left=="auto"?i.legend.position.match("w")?a+=d/2:a-=d/2:a+=i.series.pie.offset.left,a<u?a=u:a>h-u&&(a=h-u);var v=r.getData(),g=0;do g>0&&(u*=n),g+=1,y(),i.series.pie.tilt<=.8&&b();while(!w()&&g<t);g>=t&&(y(),o.prepend("<div class='error'>Could not draw pie with labels contained inside canvas</div>")),r.setSeries&&r.insertLegend&&(r.setSeries(v),r.insertLegend())}function m(e){if(i.series.pie.innerRadius>0){e.save();var t=i.series.pie.innerRadius>1?i.series.pie.innerRadius:u*i.series.pie.innerRadius;e.globalCompositeOperation="destination-out",e.beginPath(),e.fillStyle=i.series.pie.stroke.color,e.arc(0,0,t,0,Math.PI*2,!1),e.fill(),e.closePath(),e.restore(),e.save(),e.beginPath(),e.strokeStyle=i.series.pie.stroke.color,e.arc(0,0,t,0,Math.PI*2,!1),e.stroke(),e.closePath(),e.restore()}}function g(e,t){for(var n=!1,r=-1,i=e.length,s=i-1;++r<i;s=r)(e[r][1]<=t[1]&&t[1]<e[s][1]||e[s][1]<=t[1]&&t[1]<e[r][1])&&t[0]<(e[s][0]-e[r][0])*(t[1]-e[r][1])/(e[s][1]-e[r][1])+e[r][0]&&(n=!n);return n}function y(e,t){var n=r.getData(),i=r.getOptions(),s=i.series.pie.radius>1?i.series.pie.radius:u*i.series.pie.radius,o,l;for(var h=0;h<n.length;++h){var p=n[h];if(p.pie.show){c.save(),c.beginPath(),c.moveTo(0,0),c.arc(0,0,s,p.startAngle,p.startAngle+p.angle/2,!1),c.arc(0,0,s,p.startAngle+p.angle/2,p.startAngle+p.angle,!1),c.closePath(),o=e-a,l=t-f;if(c.isPointInPath){if(c.isPointInPath(e-a,t-f))return c.restore(),{ (…)
    [all...]
  /frameworks/base/graphics/java/android/graphics/
Camera.java 61 * @param deg The angle of rotation around the X axis, in degrees
72 * @param deg The angle of rotation around the Y axis, in degrees
83 * @param deg The angle of rotation around the Z axis, in degrees
94 * @param x The angle of rotation around the X axis, in degrees
95 * @param y The angle of rotation around the Y axis, in degrees
96 * @param z The angle of rotation around the Z axis, in degrees
  /frameworks/base/tools/orientationplot/
README.txt 35 filtered accelerometer data, measured tilt and orientation angle, confidence
61 the measured orientation angle is now within the gap between the new
65 angle (say, 45 degrees) is between the current orientation's ideal angle
66 (say, 0 degrees) and an adjacent orientation's ideal angle (say, 90 degrees).
74 4. The orientation angle is not measured when the tilt is too close to 90 or -90
  /packages/apps/Browser/src/com/android/browser/view/
PieMenu.java 71 public void layout(int anchorX, int anchorY, boolean onleft, float angle,
250 float angle = emptyangle + sweep / 2; local
261 int x = (int) (r * Math.sin(angle));
262 int y = mCenter.y - (int) (r * Math.cos(angle)) - h / 2;
270 float itemstart = angle - sweep / 2;
272 angle += sweep;
284 * @param angle from 0..PI to Android degrees (clockwise starting at 3
286 * @return skia angle
288 private float getDegrees(double angle) {
289 return (float) (270 - 180 * angle / Math.PI)
    [all...]
  /external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/vega/
vgu.c 296 VGfloat angle = startAngle + 180; local
297 while (angle < last) {
300 coords[i+3] = x + cos(DEGREES_TO_RADIANS(angle))*width/2;
301 coords[i+4] = y + sin(DEGREES_TO_RADIANS(angle))*height/2;
307 angle += 180;
319 VGfloat angle = startAngle - 180; local
320 while (angle > last) {
323 coords[i+3] = x + cos(DEGREES_TO_RADIANS(angle)) * width/2;
324 coords[i+4] = y + sin(DEGREES_TO_RADIANS(angle)) * height/2;
329 angle -= 180
    [all...]
  /external/mesa3d/src/gallium/state_trackers/vega/
vgu.c 296 VGfloat angle = startAngle + 180; local
297 while (angle < last) {
300 coords[i+3] = x + cos(DEGREES_TO_RADIANS(angle))*width/2;
301 coords[i+4] = y + sin(DEGREES_TO_RADIANS(angle))*height/2;
307 angle += 180;
319 VGfloat angle = startAngle - 180; local
320 while (angle > last) {
323 coords[i+3] = x + cos(DEGREES_TO_RADIANS(angle)) * width/2;
324 coords[i+4] = y + sin(DEGREES_TO_RADIANS(angle)) * height/2;
329 angle -= 180
    [all...]
  /external/chromium_org/third_party/skia/experimental/Intersection/
thingsToDo.txt 178 static bool CoincidentCandidate(const Angle* current) {
190 static bool CoincidentHalf(const Angle* current, const Angle* next) {
221 static bool Coincident(const Angle* current, const Angle* next) {
229 static bool CoincidentCancels(const Angle* current, const Angle* next) {
280 void adjustFirst(const SkTDArray<Angle*>& sorted, int& first, int& winding,
285 const Angle* angle = sorted[firstIndex]
    [all...]
EdgeDemo.cpp 65 SkScalar angle = angles[c] * 3.1415f * 2 / 600; local
66 SkScalar temp = (SkScalar) (x * cos(angle) - y * sin(angle));
67 y = (SkScalar) (x * sin(angle) + y * cos(angle));
86 SkScalar angle = startAngle; local
89 SkScalar x = (SkScalar) (radius * cos(angle));
90 SkScalar y = (SkScalar) (radius * sin(angle));
98 angle += 3.1415f / points;
  /external/chromium_org/third_party/skia/src/pathops/
SkPathOpsCommon.cpp 164 // find first angle, initialize winding to computed fWindSum
165 const SkOpAngle* angle = segment->spanToAngle(*tIndex, *endIndex); local
167 SkDEBUGCODE(firstAngle = angle);
171 angle = angle->next();
172 SkASSERT(angle != firstAngle || !loop);
173 SkDEBUGCODE(loop |= angle == firstAngle);
174 segment = angle->segment();
175 winding = segment->windSum(angle);
177 int spanWinding = segment->spanSign(angle->start(), angle->end())
    [all...]
  /external/skia/experimental/Intersection/
thingsToDo.txt 178 static bool CoincidentCandidate(const Angle* current) {
190 static bool CoincidentHalf(const Angle* current, const Angle* next) {
221 static bool Coincident(const Angle* current, const Angle* next) {
229 static bool CoincidentCancels(const Angle* current, const Angle* next) {
280 void adjustFirst(const SkTDArray<Angle*>& sorted, int& first, int& winding,
285 const Angle* angle = sorted[firstIndex]
    [all...]
EdgeDemo.cpp 65 SkScalar angle = angles[c] * 3.1415f * 2 / 600; local
66 SkScalar temp = (SkScalar) (x * cos(angle) - y * sin(angle));
67 y = (SkScalar) (x * sin(angle) + y * cos(angle));
86 SkScalar angle = startAngle; local
89 SkScalar x = (SkScalar) (radius * cos(angle));
90 SkScalar y = (SkScalar) (radius * sin(angle));
98 angle += 3.1415f / points;
  /external/skia/src/pathops/
SkPathOpsCommon.cpp 164 // find first angle, initialize winding to computed fWindSum
165 const SkOpAngle* angle = segment->spanToAngle(*tIndex, *endIndex); local
167 SkDEBUGCODE(firstAngle = angle);
171 angle = angle->next();
172 SkASSERT(angle != firstAngle || !loop);
173 SkDEBUGCODE(loop |= angle == firstAngle);
174 segment = angle->segment();
175 winding = segment->windSum(angle);
177 int spanWinding = segment->spanSign(angle->start(), angle->end())
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/css/
CSSMatrix.h 128 // Returns this matrix rotated about the passed axis by the passed angle.
131 // the rotation values on the left (result = rotation(x,y,z,angle) * this)
132 PassRefPtrWillBeRawPtr<CSSMatrix> rotateAxisAngle(double x, double y, double z, double angle) const;
137 // the skew values on the left (result = skewX(angle) * this)
138 PassRefPtrWillBeRawPtr<CSSMatrix> skewX(double angle) const;
143 // the skew values on the left (result = skewY(angle) * this)
144 PassRefPtrWillBeRawPtr<CSSMatrix> skewY(double angle) const;
  /frameworks/base/policy/src/com/android/internal/policy/impl/
WindowOrientationListener.java 217 * The elevation angle is referred to as the "tilt" below.
218 * The azimuth angle is referred to as the "orientation" below (and the azimuth axis is
222 * - If the tilt angle is too close to horizontal (near 90 or -90 degrees), do nothing.
223 * The orientation angle is not meaningful when the device is nearly horizontal.
224 * The tilt angle thresholds are set differently for each orientation and different
228 * - When the orientation angle reaches a certain threshold, consider transitioning
274 // If the tilt angle remains greater than the specified angle for a minimum of
280 // If the tilt angle has increased by at least delta degrees within the specified amount
341 // Maximum absolute tilt angle at which to consider orientation data. Beyond this (i.e
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/css/resolver/
TransformBuilder.cpp 207 double angle = firstValue->computeDegrees(); local
208 operations.operations().append(RotateTransformOperation::create(0, 0, 1, angle, getTransformOperationType(transformValue->operationType())));
217 double angle = firstValue->computeDegrees(); local
225 operations.operations().append(RotateTransformOperation::create(x, y, z, angle, getTransformOperationType(transformValue->operationType())));
237 double angle = fourthValue->computeDegrees(); local
238 operations.operations().append(RotateTransformOperation::create(x, y, z, angle, getTransformOperationType(transformValue->operationType())));
246 double angle = firstValue->computeDegrees(); local
248 angleY = angle;
250 angleX = angle;

Completed in 736 milliseconds

<<11121314151617181920>>