Home
last modified time | relevance | path

Searched refs:cos (Results 1 – 25 of 61) sorted by relevance

123

/packages/services/Car/libs/car-evs-helper-lib/src/com/android/car/internal/evs/
DGLES20CarEvsBufferRenderer.java130 float cos = (float) Math.cos(angleInRadian); in GLES20CarEvsBufferRenderer() local
132 rotated[0] += cos * sVertTexData[0] - sin * sVertTexData[1]; in GLES20CarEvsBufferRenderer()
133 rotated[1] += sin * sVertTexData[0] + cos * sVertTexData[1]; in GLES20CarEvsBufferRenderer()
134 rotated[2] += cos * sVertTexData[2] - sin * sVertTexData[3]; in GLES20CarEvsBufferRenderer()
135 rotated[3] += sin * sVertTexData[2] + cos * sVertTexData[3]; in GLES20CarEvsBufferRenderer()
136 rotated[4] += cos * sVertTexData[4] - sin * sVertTexData[5]; in GLES20CarEvsBufferRenderer()
137 rotated[5] += sin * sVertTexData[4] + cos * sVertTexData[5]; in GLES20CarEvsBufferRenderer()
138 rotated[6] += cos * sVertTexData[6] - sin * sVertTexData[7]; in GLES20CarEvsBufferRenderer()
139 rotated[7] += sin * sVertTexData[6] + cos * sVertTexData[7]; in GLES20CarEvsBufferRenderer()
/packages/apps/Camera2/src/com/android/camera/ui/
DPreviewOverlay.java341 canvas.drawLine(mCenterX + mInnerRadius * (float) Math.cos(mFingerAngle), in draw()
343 mCenterX + mOuterRadius * (float) Math.cos(mFingerAngle), in draw()
345 canvas.drawLine(mCenterX - mInnerRadius * (float) Math.cos(mFingerAngle), in draw()
347 mCenterX - mOuterRadius * (float) Math.cos(mFingerAngle), in draw()
353 canvas.drawLine(mCenterX + mInnerRadius * (float) Math.cos(mFingerAngle), in draw()
355 mCenterX + zoomRadius * (float) Math.cos(mFingerAngle), in draw()
357 canvas.drawLine(mCenterX - mInnerRadius * (float) Math.cos(mFingerAngle), in draw()
359 mCenterX - zoomRadius * (float) Math.cos(mFingerAngle), in draw()
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/primers/
DFovPrimer.java21 import static java.lang.Math.cos;
53 this.mCosFov = cos(fov); in FovPrimer()
79 double zValue = abs(cos(elevation) * cos(azimuth)); in prime()
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/math/
DSphericalVector.java25 import static java.lang.Math.cos;
161 double ca = cos(azimuth); in fromAoAVector()
163 double azz = sqrt(max(ca * ca - se * se, 0)) / cos(vec.elevation); in fromAoAVector()
190 float x = distance * (float) cos(elevation) * sa; in toCartesian()
192 float z = distance * (float) abs(cos(elevation) * cos(azimuth)); in toCartesian()
DVector3.java180 float cos = dot / combinedLength; in angleBetweenVectors() local
184 cos = MathHelper.clamp(cos, -1.0f, 1.0f); in angleBetweenVectors()
185 return (float) acos(cos); in angleBetweenVectors()
DAoaVector.java24 import static java.lang.Math.cos;
211 double ca = cos(azimuth); in fromSphericalVector()
213 double ce = cos(vec.elevation); in fromSphericalVector()
DQuaternion.java24 import static java.lang.Math.cos;
94 float cos = (float) cos(angle); in axisAngle() local
96 return new Quaternion(sin * a.x, sin * a.y, sin * a.z, cos); in axisAngle()
314 double cosThetaT = cos(thetaT); in slerp()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DKalmanFilterTest.java55 double cos = Math.cos(stepSizeRadians); in initializePll() local
58 cos, sin, in initializePll()
59 -sin, cos}); in initializePll()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/map/
DMapView.kt31 import kotlin.math.cos in <lambda>()
158 x += cos(toRadians(location.latitude)) * cos(toRadians(location.longitude)) in <lambda>()
159 y += cos(toRadians(location.latitude)) * sin(toRadians(location.longitude)) in <lambda>()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/
DPoint.java88 float cos = Math.min(1.0f, Math.max(-1.0f, dotProduct / dist1 / dist2)); in getAngle() local
89 float angle = (float) Math.acos(cos); in getAngle()
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/filtering/
DMedAvgRotationFilter.java22 import static java.lang.Math.cos;
85 result.stream().mapToDouble(sample -> cos(sample.value)).sum() in sortSamples()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DRoundedLine.java63 final float cosa = (float)Math.cos(aa); in makePath()
65 final float cosb = (float)Math.cos(ab); in makePath()
/packages/apps/Gallery2/src/com/android/photos/views/
DTiledImageRenderer.java366 double cos = Math.cos(radians); in getRange() local
369 Math.abs(cos * w - sin * h), Math.abs(cos * w + sin * h))); in getRange()
371 Math.abs(sin * w + cos * h), Math.abs(sin * w - cos * h))); in getRange()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DTileImageView.java308 double cos = Math.cos(radians); in getRange() local
311 Math.abs(cos * w - sin * h), Math.abs(cos * w + sin * h))); in getRange()
313 Math.abs(sin * w + cos * h), Math.abs(sin * w - cos * h))); in getRange()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerCircleView.kt32 import kotlin.math.cos
145 val dotX = xCenter + (radius * cos(dotAngleRadians)).toFloat() in onDraw()
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DRoundedArrowDrawable.java20 import static java.lang.Math.cos;
195 float lineRoundPointIntersectFromTop = (float) (height - (p * cos(theta))); in addDownPointingRoundedTriangleToPath()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchCircleView.kt35 import kotlin.math.cos
156 val dotX = xCenter + (radius * cos(dotAngleRadians)).toFloat() in onDraw()
/packages/apps/Launcher3/src/com/android/launcher3/celllayout/
DReorderPreviewAnimation.kt33 import kotlin.math.cos
97 finalDeltaX = (-dir * sign(dX.toFloat()) * abs(cos(angle) * reorderMagnitude))
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DGalleryUtils.java167 double cosTerms = Math.cos((latRad1 + latRad2) / 2.0); in fastDistanceMeters()
180 double x = dlat * dlat + dlng * dlng * Math.cos(lat1) * Math.cos(lat2); in accurateDistanceMeters()
DMotionEventHelper.java107 v[1] = (float) -Math.cos(angleRadians); in transformAngle()
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/ui/enrollment/modules/enrolling/udfps/ui/widget/
DUdfpsEnrollProgressBarDrawableV2.kt39 import kotlin.math.cos in <lambda>()
304 var x = (cos(Math.toRadians(315.0)) * radius).toInt() + progressBounds.centerX() in <lambda>()
/packages/services/Car/tests/DiagnosticTools/src/com/google/android/car/diagnostictools/utils/
DMathEval.java173 x = Math.cos(Math.toRadians(x)); in eval()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DEclipseControl.java273 float x = cx + (float) (rx * Math.cos(angle)); in paintOvallines()
292 float x = cx + (float) (rx * Math.cos(angle)); in fillHandles()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DClippedFolderIconLayoutRule.java125 result[0] = mAvailableSpace / 2 + (float) (radius * Math.cos(theta) / 2) - halfIconSize; in getPosition()
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/
DSimulatorRemoteVideo.java121 circleX += (float) Math.cos(angle) * CIRCLE_STEP; in moveCircle()

123