Home
last modified time | relevance | path

Searched refs:theta (Results 1 – 10 of 10) sorted by relevance

/frameworks/layoutlib/bridge/src/android/view/shadow/
DHighQualityShadowPainter.java294 double theta = (Math.PI / 2.0d) * ((double) i / ShadowConstants.SPLICE_ROUNDED_EDGE); in buildRoundedEdges() local
295 float x = (float) (rect.left + (radius - radius * Math.cos(theta))); in buildRoundedEdges()
296 float y = (float) (rect.top + (radius - radius * Math.sin(theta))); in buildRoundedEdges()
304 double theta = (Math.PI / 2.0d) * ((double) i / ShadowConstants.SPLICE_ROUNDED_EDGE); in buildRoundedEdges() local
305 float x = (float) (rect.right - (radius - radius * Math.cos(theta))); in buildRoundedEdges()
306 float y = (float) (rect.top + (radius - radius * Math.sin(theta))); in buildRoundedEdges()
314 double theta = (Math.PI / 2.0d) * ((double) i / ShadowConstants.SPLICE_ROUNDED_EDGE); in buildRoundedEdges() local
315 float x = (float) (rect.right - (radius - radius * Math.cos(theta))); in buildRoundedEdges()
316 float y = (float) (rect.bottom - (radius - radius * Math.sin(theta))); in buildRoundedEdges()
324 double theta = (Math.PI / 2.0d) * ((double) i / ShadowConstants.SPLICE_ROUNDED_EDGE); in buildRoundedEdges() local
[all …]
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
Dmandelbulb.rscript30 float theta = acos(p.z / r);
32 out.x = sin(n * theta) * cos(n * phi);
33 out.y = sin(n * theta) * sin(n * phi);
34 out.z = cos(n * theta);
/frameworks/wilhelm/src/itf/
DI3DMacroscopic.cpp122 SLmillidegree theta, const SLVec3D *pAxis) in I3DMacroscopic_Rotate() argument
126 if (!((-360000 <= theta) && (theta <= 360000)) || NULL == pAxis) { in I3DMacroscopic_Rotate()
135 thiz->mTheta = theta; in I3DMacroscopic_Rotate()
DI3DLocation.cpp213 static SLresult I3DLocation_Rotate(SL3DLocationItf self, SLmillidegree theta, const SLVec3D *pAxis) in I3DLocation_Rotate() argument
217 if (!((-360000 <= theta) && (theta <= 360000)) || (NULL == pAxis)) { in I3DLocation_Rotate()
230 thiz->mTheta = theta; in I3DLocation_Rotate()
/frameworks/rs/driver/runtime/
Drs_quaternion.c152 float theta = acos(angle); in rsQuaternionSlerp() local
153 float invSinTheta = 1.0f / sin(theta); in rsQuaternionSlerp()
154 scale = sin(theta * (1.0f - t)) * invSinTheta; in rsQuaternionSlerp()
155 invScale = sin(theta * t) * invSinTheta; in rsQuaternionSlerp()
/frameworks/native/libs/math/include/math/
DTQuatHelpers.h240 const T theta(a*std::acos(q.w / nq)); in pow()
241 return std::pow(nq, a) * QUATERNION<T>(normalize(q.xyz) * std::sin(theta), std::cos(theta)); in pow()
/frameworks/layoutlib/bridge/src/android/util/
DPathParser_Delegate.java699 float y1, float a, float b, float theta, boolean isMoreThanHalf, in drawArc() argument
705 double thetaD = theta * Math.PI / 180.0f; in drawArc()
732 drawArc(p, x0, y0, x1, y1, a * adjust, b * adjust, theta, in drawArc()
796 double b, double e1x, double e1y, double theta, double start, in arcToBezier() argument
806 double cosTheta = Math.cos(theta); in arcToBezier()
807 double sinTheta = Math.sin(theta); in arcToBezier()
/frameworks/rs/script_api/include/
Drs_quaternion.rsh295 float theta = acos(angle);
296 float invSinTheta = 1.0f / sin(theta);
297 scale = sin(theta * (1.0f - t)) * invSinTheta;
298 invScale = sin(theta * t) * invSinTheta;
/frameworks/wilhelm/src/android/
DAudioPlayer_to_android.cpp350 double theta = (1000+volumeItf->mStereoPosition)*M_PI_4/1000.0f; // 0 <= theta <= Pi/2 in android_player_volumeUpdate() local
351 amplFromStereoPos[0] = cos(theta); in android_player_volumeUpdate()
352 amplFromStereoPos[1] = sin(theta); in android_player_volumeUpdate()
/frameworks/wilhelm/include/SLES/
DOpenSLES.h1750 SLmillidegree theta,
1909 SLmillidegree theta,