/external/jmonkeyengine/engine/src/core/com/jme3/math/ |
D | Transform.java | 51 private Quaternion rot = new Quaternion(); field in Transform 55 public Transform(Vector3f translation, Quaternion rot){ in Transform() argument 57 this.rot.set(rot); in Transform() 60 public Transform(Vector3f translation, Quaternion rot, Vector3f scale){ in Transform() argument 61 this(translation, rot); in Transform() 69 public Transform(Quaternion rot){ in Transform() argument 70 this(Vector3f.ZERO, rot); in Transform() 82 public Transform setRotation(Quaternion rot) { in setRotation() argument 83 this.rot.set(rot); in setRotation() 153 quat.set(rot); in getRotation() [all …]
|
/external/toybox/toys/lsb/ |
D | md5sum.c | 123 unsigned *rot[5], *temp; in sha1_transform() local 128 rot[i] = TT.state + i; in sha1_transform() 135 work = *rot[2] ^ *rot[3]; in sha1_transform() 136 if (!i) work = (work & *rot[1]) ^ *rot[3]; in sha1_transform() 138 if (i==2) work = ((*rot[1]|*rot[2])&*rot[3])|(*rot[1]&*rot[2]); in sha1_transform() 139 else work ^= *rot[1]; in sha1_transform() 148 *rot[4] += work + rol(*rot[0],5) + rconsts[i]; in sha1_transform() 149 *rot[1] = rol(*rot[1],30); in sha1_transform() 152 temp = rot[4]; in sha1_transform() 153 for (k=4; k; k--) rot[k] = rot[k-1]; in sha1_transform() [all …]
|
/external/regex-re2/util/ |
D | hash.cc | 43 #define rot(x,k) (((x)<<(k)) | ((x)>>(32-(k)))) macro 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); \ 128 b ^= a; b -= rot(a,25); \ [all …]
|
/external/autotest/client/site_tests/graphics_SanAngeles/src/ |
D | matrixop.c | 84 Matrix4x4 rot; in Matrix4x4_Rotate() local 105 rot[0*4 + 0] = xx + (1.f - xx) * c; in Matrix4x4_Rotate() 106 rot[1*4 + 0] = xy * one_c - zs; in Matrix4x4_Rotate() 107 rot[2*4 + 0] = xz * one_c + ys; in Matrix4x4_Rotate() 108 rot[3*4 + 0] = 0.f; in Matrix4x4_Rotate() 110 rot[0*4 + 1] = xy * one_c + zs; in Matrix4x4_Rotate() 111 rot[1*4 + 1] = yy + (1.f - yy) * c; in Matrix4x4_Rotate() 112 rot[2*4 + 1] = yz * one_c - xs; in Matrix4x4_Rotate() 113 rot[3*4 + 1] = 0.f; in Matrix4x4_Rotate() 115 rot[0*4 + 2] = xz * one_c - ys; in Matrix4x4_Rotate() [all …]
|
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/ |
D | Affine2Test.java | 33 float rot = 35; in create() local 34 float cos = (float)Math.cos(MathUtils.degreesToRadians * rot); in create() 35 float sin = (float)Math.sin(MathUtils.degreesToRadians * rot); in create() 63 mat1.setToRotation(rot); in create() 65 afn1.setToRotation(rot); in create() 67 mat1.setToRotationRad(MathUtils.degreesToRadians * rot); in create() 69 afn1.setToRotationRad(MathUtils.degreesToRadians * rot); in create() 77 afn1.setToTrnRotScl(trn, rot, scl); in create() 78 afn2.setToTrnRotRadScl(trn, MathUtils.degreesToRadians * rot, scl); in create() 80 afn2.setToTranslation(trn).rotate(rot).scale(scl); in create() [all …]
|
D | MatrixJNITest.java | 51 vec.rot(mat1); in create() 52 Matrix4.rot(mat1.val, fvec); in create() 53 Matrix4.rot(mat1.val, fvecs, 0, 3, 5); in create()
|
/external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/objects/ |
D | PhysicsGhostObject.java | 152 public Quaternion getPhysicsRotation(Quaternion rot) { in getPhysicsRotation() argument 153 if (rot == null) { in getPhysicsRotation() 154 rot = new Quaternion(); in getPhysicsRotation() 156 getPhysicsRotation(objectId, rot); in getPhysicsRotation() 157 return rot; in getPhysicsRotation() 160 private native void getPhysicsRotation(long objectId, Quaternion rot); in getPhysicsRotation() argument 165 public Matrix3f getPhysicsRotationMatrix(Matrix3f rot) { in getPhysicsRotationMatrix() argument 166 if (rot == null) { in getPhysicsRotationMatrix() 167 rot = new Matrix3f(); in getPhysicsRotationMatrix() 169 getPhysicsRotationMatrix(objectId, rot); in getPhysicsRotationMatrix() [all …]
|
D | PhysicsRigidBody.java | 186 public Quaternion getPhysicsRotation(Quaternion rot) { in getPhysicsRotation() argument 187 if (rot == null) { in getPhysicsRotation() 188 rot = new Quaternion(); in getPhysicsRotation() 190 getPhysicsRotation(objectId, rot); in getPhysicsRotation() 191 return rot; in getPhysicsRotation() 194 private native void getPhysicsRotation(long objectId, Quaternion rot); in getPhysicsRotation() argument 199 public Matrix3f getPhysicsRotationMatrix(Matrix3f rot) { in getPhysicsRotationMatrix() argument 200 if (rot == null) { in getPhysicsRotationMatrix() 201 rot = new Matrix3f(); in getPhysicsRotationMatrix() 203 getPhysicsRotationMatrix(objectId, rot); in getPhysicsRotationMatrix() [all …]
|
/external/eigen/test/eigen2/ |
D | eigen2_hyperplane.cpp | 52 MatrixType rot = MatrixType::Random(dim,dim).qr().matrixQ(); in hyperplane() local 57 VERIFY_IS_MUCH_SMALLER_THAN( pl2.transform(rot).absDistance(rot * p1), Scalar(1) ); in hyperplane() 59 VERIFY_IS_MUCH_SMALLER_THAN( pl2.transform(rot,Isometry).absDistance(rot * p1), Scalar(1) ); in hyperplane() 61 …VERIFY_IS_MUCH_SMALLER_THAN( pl2.transform(rot*scaling).absDistance((rot*scaling) * p1), Scalar(1)… in hyperplane() 63 VERIFY_IS_MUCH_SMALLER_THAN( pl2.transform(rot*scaling*translation) in hyperplane() 64 .absDistance((rot*scaling*translation) * p1), Scalar(1) ); in hyperplane() 66 VERIFY_IS_MUCH_SMALLER_THAN( pl2.transform(rot*translation,Isometry) in hyperplane() 67 .absDistance((rot*translation) * p1), Scalar(1) ); in hyperplane()
|
/external/eigen/test/ |
D | geo_hyperplane.cpp | 52 MatrixType rot = MatrixType::Random(dim,dim).householderQr().householderQ(); in hyperplane() local 57 VERIFY_IS_MUCH_SMALLER_THAN( pl2.transform(rot).absDistance(rot * p1), Scalar(1) ); in hyperplane() 59 VERIFY_IS_MUCH_SMALLER_THAN( pl2.transform(rot,Isometry).absDistance(rot * p1), Scalar(1) ); in hyperplane() 61 …VERIFY_IS_MUCH_SMALLER_THAN( pl2.transform(rot*scaling).absDistance((rot*scaling) * p1), Scalar(1)… in hyperplane() 63 VERIFY_IS_MUCH_SMALLER_THAN( pl2.transform(rot*scaling*translation) in hyperplane() 64 .absDistance((rot*scaling*translation) * p1), Scalar(1) ); in hyperplane() 66 VERIFY_IS_MUCH_SMALLER_THAN( pl2.transform(rot*translation,Isometry) in hyperplane() 67 .absDistance((rot*translation) * p1), Scalar(1) ); in hyperplane()
|
D | jacobi.cpp | 32 JacobiRotation<JacobiScalar> rot(c, s); in jacobi() local 42 b.applyOnTheLeft(p, q, rot); in jacobi() 55 b.applyOnTheRight(p, q, rot); in jacobi()
|
/external/eigen/Eigen/src/Eigenvalues/ |
D | SelfAdjointEigenSolver.h | 761 JacobiRotation<RealScalar> rot; 762 rot.makeGivens(x, z); 765 RealScalar sdk = rot.s() * diag[k] + rot.c() * subdiag[k]; 766 RealScalar dkp1 = rot.s() * subdiag[k] + rot.c() * diag[k+1]; 768 …diag[k] = rot.c() * (rot.c() * diag[k] - rot.s() * subdiag[k]) - rot.s() * (rot.c() * subdiag[k] -… 769 diag[k+1] = rot.s() * sdk + rot.c() * dkp1; 770 subdiag[k] = rot.c() * sdk - rot.s() * dkp1; 774 subdiag[k - 1] = rot.c() * subdiag[k-1] - rot.s() * z; 780 z = -rot.s() * subdiag[k+1]; 781 subdiag[k + 1] = rot.c() * subdiag[k+1]; [all …]
|
D | ComplexSchur.h | 429 JacobiRotation<ComplexScalar> rot; 430 rot.makeGivens(m_matT.coeff(il,il) - shift, m_matT.coeff(il+1,il)); 431 m_matT.rightCols(m_matT.cols()-il).applyOnTheLeft(il, il+1, rot.adjoint()); 432 m_matT.topRows((std::min)(il+2,iu)+1).applyOnTheRight(il, il+1, rot); 433 if(computeU) m_matU.applyOnTheRight(il, il+1, rot); 437 rot.makeGivens(m_matT.coeffRef(i,i-1), m_matT.coeffRef(i+1,i-1), &m_matT.coeffRef(i,i-1)); 439 m_matT.rightCols(m_matT.cols()-i).applyOnTheLeft(i, i+1, rot.adjoint()); 440 m_matT.topRows((std::min)(i+2,iu)+1).applyOnTheRight(i, i+1, rot); 441 if(computeU) m_matU.applyOnTheRight(i, i+1, rot);
|
D | RealSchur.h | 378 JacobiRotation<Scalar> rot; in splitOffTwoRows() local 380 rot.makeGivens(p + z, m_matT.coeff(iu, iu-1)); in splitOffTwoRows() 382 rot.makeGivens(p - z, m_matT.coeff(iu, iu-1)); in splitOffTwoRows() 384 m_matT.rightCols(size-iu+1).applyOnTheLeft(iu-1, iu, rot.adjoint()); in splitOffTwoRows() 385 m_matT.topRows(iu+1).applyOnTheRight(iu-1, iu, rot); in splitOffTwoRows() 388 m_matU.applyOnTheRight(iu-1, iu, rot); in splitOffTwoRows()
|
/external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/objects/ |
D | PhysicsGhostObject.java | 155 public Quaternion getPhysicsRotation(Quaternion rot) { in getPhysicsRotation() argument 156 if (rot == null) { in getPhysicsRotation() 157 rot = new Quaternion(); in getPhysicsRotation() 161 return rot.set(physicsLocation.getRotation()); in getPhysicsRotation() 167 public Matrix3f getPhysicsRotationMatrix(Matrix3f rot) { in getPhysicsRotationMatrix() argument 168 if (rot == null) { in getPhysicsRotationMatrix() 169 rot = new Matrix3f(); in getPhysicsRotationMatrix() 173 return rot.set(physicsLocation.getRotation()); in getPhysicsRotationMatrix()
|
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/constraints/ |
D | Feature.java | 131 …Quaternion rot = new Quaternion(new float[] { rotArray.get(0).floatValue(), rotArray.get(1).floatV… in getTransform() local 140 y = rot.getY(); in getTransform() 141 float z = rot.getZ(); in getTransform() 142 rot.set(rot.getX(), z, -y, rot.getW()); in getTransform() 149 Transform result = new Transform(loc, rot); in getTransform()
|
/external/zlib/src/examples/ |
D | gzappend.c | 123 local void rotate(unsigned char *list, unsigned len, unsigned rot) in rotate() argument 131 if (rot >= len) rot %= len; in rotate() 132 if (rot == 0) return; in rotate() 138 if (rot == 1) { in rotate() 146 if (rot == len - 1) { in rotate() 154 cycles = gcd(len, rot); /* number of cycles */ in rotate() 160 from += rot; /* go right rot positions */ in rotate()
|
/external/mesa3d/src/gallium/state_trackers/vega/ |
D | arc.c | 134 find_ellipses(double rh, double rv, double rot, in find_ellipses() argument 140 rot *= M_PI/180.0; in find_ellipses() 142 COS = cos(rot); SIN = sin(rot); in find_ellipses() 167 double COS, SIN, rot, x0p, y0p, x1p, y1p; in try_to_fix_radii() local 171 rot = DEGREES_TO_RADIANS(arc->theta); in try_to_fix_radii() 174 COS = cos(rot); SIN = sin(rot); in try_to_fix_radii() 351 VGfloat rot) in arc_init() argument 364 arc->theta = rot; in arc_init() 370 arc->is_valid = find_ellipses(rh, rv, rot, x1, y1, x2, y2, in arc_init() 377 find_ellipses(rh, rv, rot, x1, y1, x2, y2, in arc_init() [all …]
|
/external/jmonkeyengine/engine/src/core/com/jme3/scene/control/ |
D | BillboardControl.java | 196 Quaternion rot=new Quaternion().fromRotationMatrix(orient); in rotateScreenAligned() local 198 rot = parent.getWorldRotation().inverse().multLocal(rot); in rotateScreenAligned() 199 rot.normalizeLocal(); in rotateScreenAligned() 201 spatial.setLocalRotation(rot); in rotateScreenAligned()
|
/external/skia/gm/ |
D | dstreadshuffle.cpp | 74 SkMatrix rot; in drawShape() local 75 rot.setRotate(SkIntToScalar(360) / 5); in drawShape() 77 rot.mapPoints(points + i, points + i - 1, 1); in drawShape()
|
/external/jmonkeyengine/engine/src/test/jme3test/bullet/ |
D | TestHoveringTank.java | 165 Quaternion rot = spaceCraft.getWorldRotation(); in makeMissile() local 166 Vector3f dir = rot.getRotationColumn(2); in makeMissile() 179 missile.rotate(rot); in makeMissile() 222 Quaternion rot = spaceCraft.getWorldRotation(); in updateCamera() local 223 Vector3f dir = rot.getRotationColumn(2); in updateCamera()
|
/external/jmonkeyengine/engine/src/core/com/jme3/app/ |
D | DebugKeysAppState.java | 106 Quaternion rot = cam.getRotation(); in onAction() local 109 System.out.println("Camera Rotation: " + rot); in onAction()
|
/external/chromium-trace/catapult/third_party/mapreduce/mapreduce/ |
D | records.py | 130 rot = (masked_crc - _CRC_MASK_DELTA) & 0xFFFFFFFFL 131 return ((rot >> 17) | (rot << 15)) & 0xFFFFFFFFL
|
/external/jmonkeyengine/engine/src/core/com/jme3/animation/ |
D | AnimationFactory.java | 92 void set(Quaternion rot) { in set() argument 93 rotation.set(rot); in set() 433 Quaternion rot = new Quaternion(); in interpolate() local 434 …rotations[j] = rot.slerp(((Rotation) keyFrames[i]).rotation, ((Rotation) keyFrames[key]).rotation,… in interpolate()
|
/external/skia/example/ |
D | SkiaSDLExample.cpp | 87 SkMatrix rot; in create_star() local 88 rot.setRotate(SkIntToScalar(360) / kNumPoints); in create_star() 90 rot.mapPoints(points + i, points + i - 1, 1); in create_star()
|