Home
last modified time | relevance | path

Searched refs:sinTheta (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
DRotateFilter.java122 float sinTheta; in updateParameters() local
127 sinTheta = 0f; in updateParameters()
131 sinTheta = ((mAngle + 90) % 360 == 0) ? -1f:1f; in updateParameters()
140 Point x0 = new Point(0.5f * (-cosTheta + sinTheta + 1f), in updateParameters()
141 0.5f * (-sinTheta - cosTheta + 1f)); in updateParameters()
142 Point x1 = new Point(0.5f * (cosTheta + sinTheta + 1f), in updateParameters()
143 0.5f * (sinTheta - cosTheta + 1f)); in updateParameters()
144 Point x2 = new Point(0.5f * (-cosTheta - sinTheta + 1f), in updateParameters()
145 0.5f * (-sinTheta + cosTheta + 1f)); in updateParameters()
146 Point x3 = new Point(0.5f * (cosTheta - sinTheta + 1f), in updateParameters()
[all …]
DStraightenFilter.java117 float sinTheta = (float) Math.sin(mAngle * DEGREE_TO_RADIAN); in updateParameters() local
123 Point p0 = new Point(-cosTheta * mWidth + sinTheta * mHeight, in updateParameters()
124 -sinTheta * mWidth - cosTheta * mHeight); in updateParameters()
126 Point p1 = new Point(cosTheta * mWidth + sinTheta * mHeight, in updateParameters()
127 sinTheta * mWidth - cosTheta * mHeight); in updateParameters()
129 Point p2 = new Point(-cosTheta * mWidth - sinTheta * mHeight, in updateParameters()
130 -sinTheta * mWidth + cosTheta * mHeight); in updateParameters()
132 Point p3 = new Point(cosTheta * mWidth - sinTheta * mHeight, in updateParameters()
133 sinTheta * mWidth + cosTheta * mHeight); in updateParameters()
/frameworks/base/libs/hwui/utils/
DVectorDrawableUtils.cpp131 double sinTheta = sin(theta); in arcToBezier() local
134 double ep1x = (-a * cosTheta * sinEta1) - (b * sinTheta * cosEta1); in arcToBezier()
135 double ep1y = (-a * sinTheta * sinEta1) + (b * cosTheta * cosEta1); in arcToBezier()
142 double e2x = cx + (a * cosTheta * cosEta2) - (b * sinTheta * sinEta2); in arcToBezier()
143 double e2y = cy + (a * sinTheta * cosEta2) + (b * cosTheta * sinEta2); in arcToBezier()
144 double ep2x = -a * cosTheta * sinEta2 - b * sinTheta * cosEta2; in arcToBezier()
145 double ep2y = -a * sinTheta * sinEta2 + b * cosTheta * cosEta2; in arcToBezier()
185 double sinTheta = sin(thetaD); in drawArc() local
188 double x0p = (x0 * cosTheta + y0 * sinTheta) / a; in drawArc()
189 double y0p = (-x0 * sinTheta + y0 * cosTheta) / b; in drawArc()
[all …]
/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/
DPathParser.java604 double sinTheta = Math.sin(thetaD); in drawArc() local
607 double x0p = (x0 * cosTheta + y0 * sinTheta) / a; in drawArc()
608 double y0p = (-x0 * sinTheta + y0 * cosTheta) / b; in drawArc()
609 double x1p = (x1 * cosTheta + y1 * sinTheta) / a; in drawArc()
610 double y1p = (-x1 * sinTheta + y1 * cosTheta) / b; in drawArc()
660 cx = cx * cosTheta - cy * sinTheta; in drawArc()
661 cy = tcx * sinTheta + cy * cosTheta; in drawArc()
698 double sinTheta = Math.sin(theta); in arcToBezier() local
701 double ep1x = (-a * cosTheta * sinEta1) - (b * sinTheta * cosEta1); in arcToBezier()
702 double ep1y = (-a * sinTheta * sinEta1) + (b * cosTheta * cosEta1); in arcToBezier()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/util/
DPathParser_Delegate.java705 double sinTheta = Math.sin(thetaD); in drawArc() local
708 double x0p = (x0 * cosTheta + y0 * sinTheta) / a; in drawArc()
709 double y0p = (-x0 * sinTheta + y0 * cosTheta) / b; in drawArc()
710 double x1p = (x1 * cosTheta + y1 * sinTheta) / a; in drawArc()
711 double y1p = (-x1 * sinTheta + y1 * cosTheta) / b; in drawArc()
765 cx = cx * cosTheta - cy * sinTheta; in drawArc()
766 cy = tcx * sinTheta + cy * cosTheta; in drawArc()
804 double sinTheta = Math.sin(theta); in arcToBezier() local
807 double ep1x = (-a * cosTheta * sinEta1) - (b * sinTheta * cosEta1); in arcToBezier()
808 double ep1y = (-a * sinTheta * sinEta1) + (b * cosTheta * cosEta1); in arcToBezier()
[all …]