/external/jmonkeyengine/engine/src/core/com/jme3/math/ |
Transform.java | 51 private Quaternion rot = new Quaternion(); field in class:Transform 55 public Transform(Vector3f translation, Quaternion rot){ 57 this.rot.set(rot); 60 public Transform(Vector3f translation, Quaternion rot, Vector3f scale){ 61 this(translation, rot); 69 public Transform(Quaternion rot){ 70 this(Vector3f.ZERO, rot); 79 * @param rot The new rotation for this matrix. 82 public Transform setRotation(Quaternion rot) { [all...] |
/external/regex-re2/util/ |
hash.cc | 43 #define rot(x,k) (((x)<<(k)) | ((x)>>(32-(k)))) macro 66 Some k values for my "a-=c; a^=rot(c,k); c+=b;" arrangement that 91 a -= c; a ^= rot(c, 4); c += b; \ 92 b -= a; b ^= rot(a, 6); a += c; \ 93 c -= b; c ^= rot(b, 8); b += a; \ 94 a -= c; a ^= rot(c,16); c += b; \ 95 b -= a; b ^= rot(a,19); a += c; \ 96 c -= b; c ^= rot(b, 4); b += a; \ 126 c ^= b; c -= rot(b,14); \ 127 a ^= c; a -= rot(c,11); [all...] |
/hardware/qcom/display/liboverlay/ |
mdpWrapper.h | 58 bool startRotator(int fd, msm_rotator_img_info& rot); 61 bool rotate(int fd, msm_rotator_data_info& rot); 92 void dump(const char* const s, const msm_rotator_img_info& rot); 93 void dump(const char* const s, const msm_rotator_data_info& rot); 128 inline bool startRotator(int fd, msm_rotator_img_info& rot) { 129 if (ioctl(fd, MSM_ROTATOR_IOCTL_START, &rot) < 0){ 137 inline bool rotate(int fd, msm_rotator_data_info& rot) { 138 if (ioctl(fd, MSM_ROTATOR_IOCTL_ROTATE, &rot) < 0) { 245 inline void dump(const char* const s, const msm_rotator_img_info& rot) { 246 ALOGE("%s msm_rotator_img_info sessid=%u dstx=%d dsty=%d rot=%d, ena=%d scale=%d" [all...] |
overlayUtils.cpp | 382 const msm_rotator_img_info& rot) { 384 snprintf(str, 256, "%s sessid=%u rot=%d, enable=%d downscale=%d\n", 385 prefix, rot.session_id, rot.rotations, rot.enable, 386 rot.downscale_ratio); 388 getDump(buf, len, "\tsrc", rot.src); 389 getDump(buf, len, "\tdst", rot.dst); 390 getDump(buf, len, "\tsrc_rect", rot.src_rect); 394 const msm_rotator_data_info& rot) { [all...] |
/packages/apps/Camera/jni/feature_mos/src/mosaic/ |
EdgePointerUtil.h | 27 inline EdgePointer rot(EdgePointer a) function
|
Delaunay.h | 113 #define oprev(a) rot(onext(rot(a))) 114 #define lnext(a) rot(onext(rotinv(a))) 116 #define rnext(a) rotinv(onext(rot(a))) 124 #define right(a) orig(rot(a))
|
/packages/apps/Gallery2/jni_mosaic/feature_mos/src/mosaic/ |
EdgePointerUtil.h | 27 inline EdgePointer rot(EdgePointer a) function
|
Delaunay.h | 113 #define oprev(a) rot(onext(rot(a))) 114 #define lnext(a) rot(onext(rotinv(a))) 116 #define rnext(a) rotinv(onext(rot(a))) 124 #define right(a) orig(rot(a))
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
EdgePointerUtil.h | 27 inline EdgePointer rot(EdgePointer a) function
|
Delaunay.h | 113 #define oprev(a) rot(onext(rot(a))) 114 #define lnext(a) rot(onext(rotinv(a))) 116 #define rnext(a) rotinv(onext(rot(a))) 124 #define right(a) orig(rot(a))
|
/frameworks/base/graphics/java/android/renderscript/ |
Matrix2f.java | 104 * @param rot rotation angle 106 public void loadRotate(float rot) { 108 rot *= (float)(java.lang.Math.PI / 180.0f); 109 c = (float)java.lang.Math.cos(rot); 110 s = (float)java.lang.Math.sin(rot); 164 * @param rot angle of rotation 166 public void rotate(float rot) { 168 tmp.loadRotate(rot);
|
Matrix3f.java | 111 * @param rot angle of rotation 116 public void loadRotate(float rot, float x, float y, float z) { 118 rot *= (float)(java.lang.Math.PI / 180.0f); 119 c = (float)java.lang.Math.cos(rot); 120 s = (float)java.lang.Math.sin(rot); 150 * @param rot rotation angle 152 public void loadRotate(float rot) { 155 rot *= (float)(java.lang.Math.PI / 180.0f); 156 c = (float)java.lang.Math.cos(rot); 157 s = (float)java.lang.Math.sin(rot); [all...] |
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
Matrix2f.java | 104 * @param rot rotation angle 106 public void loadRotate(float rot) { 108 rot *= (float)(java.lang.Math.PI / 180.0f); 109 c = (float)java.lang.Math.cos(rot); 110 s = (float)java.lang.Math.sin(rot); 164 * @param rot angle of rotation 166 public void rotate(float rot) { 168 tmp.loadRotate(rot);
|
Matrix3f.java | 111 * @param rot angle of rotation 116 public void loadRotate(float rot, float x, float y, float z) { 118 rot *= (float)(java.lang.Math.PI / 180.0f); 119 c = (float)java.lang.Math.cos(rot); 120 s = (float)java.lang.Math.sin(rot); 150 * @param rot rotation angle 152 public void loadRotate(float rot) { 155 rot *= (float)(java.lang.Math.PI / 180.0f); 156 c = (float)java.lang.Math.cos(rot); 157 s = (float)java.lang.Math.sin(rot); [all...] |
/external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/objects/ |
PhysicsGhostObject.java | 152 public Quaternion getPhysicsRotation(Quaternion rot) { 153 if (rot == null) { 154 rot = new Quaternion(); 156 getPhysicsRotation(objectId, rot); 157 return rot; 160 private native void getPhysicsRotation(long objectId, Quaternion rot); 165 public Matrix3f getPhysicsRotationMatrix(Matrix3f rot) { 166 if (rot == null) { 167 rot = new Matrix3f(); 169 getPhysicsRotationMatrix(objectId, rot); [all...] |
/frameworks/rs/ |
rsMatrix4x4.h | 42 void loadRotate(float rot, float x, float y, float z); 65 void rotate(float rot, float x, float y, float z) { 67 tmp.loadRotate(rot, x, y, z);
|
/external/eigen/test/eigen2/ |
eigen2_hyperplane.cpp | 52 MatrixType rot = MatrixType::Random(dim,dim).qr().matrixQ(); local 57 VERIFY_IS_MUCH_SMALLER_THAN( pl2.transform(rot).absDistance(rot * p1), Scalar(1) ); 59 VERIFY_IS_MUCH_SMALLER_THAN( pl2.transform(rot,Isometry).absDistance(rot * p1), Scalar(1) ); 61 VERIFY_IS_MUCH_SMALLER_THAN( pl2.transform(rot*scaling).absDistance((rot*scaling) * p1), Scalar(1) ); 63 VERIFY_IS_MUCH_SMALLER_THAN( pl2.transform(rot*scaling*translation) 64 .absDistance((rot*scaling*translation) * p1), Scalar(1) ); 66 VERIFY_IS_MUCH_SMALLER_THAN( pl2.transform(rot*translation,Isometry [all...] |
/external/eigen/test/ |
geo_hyperplane.cpp | 53 MatrixType rot = MatrixType::Random(dim,dim).householderQr().householderQ(); local 58 VERIFY_IS_MUCH_SMALLER_THAN( pl2.transform(rot).absDistance(rot * p1), Scalar(1) ); 60 VERIFY_IS_MUCH_SMALLER_THAN( pl2.transform(rot,Isometry).absDistance(rot * p1), Scalar(1) ); 62 VERIFY_IS_MUCH_SMALLER_THAN( pl2.transform(rot*scaling).absDistance((rot*scaling) * p1), Scalar(1) ); 64 VERIFY_IS_MUCH_SMALLER_THAN( pl2.transform(rot*scaling*translation) 65 .absDistance((rot*scaling*translation) * p1), Scalar(1) ); 67 VERIFY_IS_MUCH_SMALLER_THAN( pl2.transform(rot*translation,Isometry [all...] |
/external/qemu/android/skin/ |
trackball.c | 110 rotator_reset( Rotator rot, int dx, int dy ) 122 rot->d[0] = zx; 123 rot->d[1] = zy; 124 rot->d[2] = 0.; 126 rot->n[0] = -rot->d[1]; 127 rot->n[1] = rot->d[0]; 128 rot->n[2] = 0; 130 rot->angle = len * ANGLE_FACTOR 415 RotatorRec rot[1]; local [all...] |
rect.h | 29 extern void skin_pos_rotate( SkinPos* dst, SkinPos* src, SkinRotation rot ); 35 extern void skin_size_rotate( SkinSize* dst, SkinSize* src, SkinRotation rot );
|
/hardware/invensense/libsensors_iio/software/core/mllite/ |
hal_outputs.c | 257 long rot[9];
local 260 inv_quaternion_to_rotation(hal_out.nav_quat, rot);
261 r[0][0] = rot[0]*conv;
262 r[0][1] = rot[1]*conv;
263 r[0][2] = rot[2]*conv;
264 r[1][0] = rot[3]*conv;
265 r[1][1] = rot[4]*conv;
266 r[1][2] = rot[5]*conv;
267 r[2][0] = rot[6]*conv;
268 r[2][1] = rot[7]*conv; [all...] |
ml_math_func.c | 340 * @param[out] rot Rotation matrix in fixed point. One is 2^30. The 346 void inv_quaternion_to_rotation(const long *quat, long *rot) 348 rot[0] = 352 rot[1] = 354 rot[2] = 356 rot[3] = 358 rot[4] = 362 rot[5] = 364 rot[6] = 366 rot[7] [all...] |
/external/eigen/Eigen/src/Eigenvalues/ |
SelfAdjointEigenSolver.h | 752 JacobiRotation<RealScalar> rot; local 753 rot.makeGivens(x, z); 756 RealScalar sdk = rot.s() * diag[k] + rot.c() * subdiag[k]; 757 RealScalar dkp1 = rot.s() * subdiag[k] + rot.c() * diag[k+1]; 759 diag[k] = rot.c() * (rot.c() * diag[k] - rot.s() * subdiag[k]) - rot.s() * (rot.c() * subdiag[k] - rot.s() * diag[k+1]) [all...] |
/external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/objects/ |
PhysicsGhostObject.java | 155 public Quaternion getPhysicsRotation(Quaternion rot) { 156 if (rot == null) { 157 rot = new Quaternion(); 161 return rot.set(physicsLocation.getRotation()); 167 public Matrix3f getPhysicsRotationMatrix(Matrix3f rot) { 168 if (rot == null) { 169 rot = new Matrix3f(); 173 return rot.set(physicsLocation.getRotation());
|
/hardware/invensense/mlsdk/mllite/ |
mlMathFunc.c | 228 * @param[out] rot Rotation matrix in fixed point. One is 2^30. The 234 void inv_quaternion_to_rotation(const long *quat, long *rot) 236 rot[0] = 239 rot[1] = inv_q29_mult(quat[1], quat[2]) - inv_q29_mult(quat[3], quat[0]); 240 rot[2] = inv_q29_mult(quat[1], quat[3]) + inv_q29_mult(quat[2], quat[0]); 241 rot[3] = inv_q29_mult(quat[1], quat[2]) + inv_q29_mult(quat[3], quat[0]); 242 rot[4] = 245 rot[5] = inv_q29_mult(quat[2], quat[3]) - inv_q29_mult(quat[1], quat[0]); 246 rot[6] = inv_q29_mult(quat[1], quat[3]) - inv_q29_mult(quat[2], quat[0]); 247 rot[7] = inv_q29_mult(quat[2], quat[3]) + inv_q29_mult(quat[1], quat[0]) [all...] |