/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...] |
/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/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/renderscript/v8/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...] |
PhysicsRigidBody.java | 186 public Quaternion getPhysicsRotation(Quaternion rot) { 187 if (rot == null) { 188 rot = new Quaternion(); 190 getPhysicsRotation(objectId, rot); 191 return rot; 194 private native void getPhysicsRotation(long objectId, Quaternion rot); 199 public Matrix3f getPhysicsRotationMatrix(Matrix3f rot) { 200 if (rot == null) { 201 rot = new Matrix3f(); 203 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);
|
/frameworks/support/renderscript/v8/rs_support/ |
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/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 );
|
/external/skia/tests/ |
Matrix44Test.cpp | 68 SkMatrix44 rot; local 72 rot.setRotateDegreesAbout(0, 0, -1, common_angles[i]); 74 SkMatrix rot3x3 = rot; 81 SkMatrix44 mat, inverse, iden1, iden2, rot; local 100 rot.setRotateDegreesAbout( 105 mat.postConcat(rot);
|
/hardware/invensense/libsensors_iio/software/core/mllite/ |
hal_outputs.c | 256 long rot[9];
local 259 inv_quaternion_to_rotation(hal_out.nav_quat, rot);
260 r[0][0] = rot[0]*conv;
261 r[0][1] = rot[1]*conv;
262 r[0][2] = rot[2]*conv;
263 r[1][0] = rot[3]*conv;
264 r[1][1] = rot[4]*conv;
265 r[1][2] = rot[5]*conv;
266 r[2][0] = rot[6]*conv;
267 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/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...] |
/external/jmonkeyengine/engine/src/core/com/jme3/app/ |
DebugKeysAppState.java | 106 Quaternion rot = cam.getRotation(); local 109 System.out.println("Camera Rotation: " + rot);
|
/system/core/libpixelflinger/codeflinger/ |
ARMAssembler.cpp | 458 uint32_t immediate, uint32_t& rot, uint32_t& imm) 460 rot = 0; 468 rot += 2; 469 if (rot == 32) { 470 rot = 0; 475 rot = (16 - (rot>>1)) & 0xF; 480 if (((imm>>(rot<<1)) | (imm<<(32-(rot<<1)))) != immediate) 490 uint32_t rot, imm local 496 uint32_t rot, imm; local [all...] |
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/constraints/ |
Feature.java | 130 DynamicArray<Number> rotArray = ((DynamicArray<Number>) targetStructure.getFieldValue("rot"));
131 Quaternion rot = new Quaternion(new float[] { rotArray.get(0).floatValue(), rotArray.get(1).floatValue(), rotArray.get(2).floatValue() });
local 140 y = rot.getY();
141 float z = rot.getZ();
142 rot.set(rot.getX(), z, -y, rot.getW());
149 Transform result = new Transform(loc, rot);
|
/external/jmonkeyengine/engine/src/core/com/jme3/scene/control/ |
BillboardControl.java | 196 Quaternion rot=new Quaternion().fromRotationMatrix(orient); local 198 rot = parent.getWorldRotation().inverse().multLocal(rot); 199 rot.normalizeLocal(); 201 spatial.setLocalRotation(rot);
|