Searched refs:cosTheta (Results 1 – 2 of 2) sorted by relevance
/external/chromium_org/ui/gfx/ |
D | transform.cc | 100 SkMScalar cosTheta = SkDoubleToMScalar(std::cos(radians)); in RotateAboutXAxis() local 104 0, cosTheta, sinTheta, in RotateAboutXAxis() 105 0, -sinTheta, cosTheta); in RotateAboutXAxis() 109 0, cosTheta, sinTheta, in RotateAboutXAxis() 110 0, -sinTheta, cosTheta); in RotateAboutXAxis() 117 SkMScalar cosTheta = SkDoubleToMScalar(std::cos(radians)); in RotateAboutYAxis() local 122 matrix_.set3x3(cosTheta, 0, -sinTheta, in RotateAboutYAxis() 124 sinTheta, 0, cosTheta); in RotateAboutYAxis() 127 rot.set3x3(cosTheta, 0, -sinTheta, in RotateAboutYAxis() 129 sinTheta, 0, cosTheta); in RotateAboutYAxis() [all …]
|
/external/chromium_org/third_party/WebKit/Source/platform/transforms/ |
D | TransformationMatrix.cpp | 776 double cosTheta = std::cos(angle); in rotate3d() local 786 mat.m_matrix[1][1] = cosTheta; in rotate3d() 790 mat.m_matrix[2][2] = cosTheta; in rotate3d() 795 mat.m_matrix[0][0] = cosTheta; in rotate3d() 803 mat.m_matrix[2][2] = cosTheta; in rotate3d() 808 mat.m_matrix[0][0] = cosTheta; in rotate3d() 812 mat.m_matrix[1][1] = cosTheta; in rotate3d() 828 double oneMinusCosTheta = 1 - cosTheta; in rotate3d() 829 mat.m_matrix[0][0] = cosTheta + x * x * oneMinusCosTheta; in rotate3d() 833 mat.m_matrix[1][1] = cosTheta + y * y * oneMinusCosTheta; in rotate3d() [all …]
|