Home
last modified time | relevance | path

Searched refs:rotation (Results 1 – 25 of 252) sorted by relevance

1234567891011

/external/opencv/cv/src/
Dcvposit.cpp114 CvMatr32f rotation, CvVect32f translation ) in icvPOSIT() argument
135 if( !rotation ) in icvPOSIT()
165 float tmp = objectVectors[i] * rotation[6] /*[2][0]*/ + in icvPOSIT()
166 objectVectors[N + i] * rotation[7] /*[2][1]*/ + in icvPOSIT()
167 objectVectors[2 * N + i] * rotation[8] /*[2][2]*/; in icvPOSIT()
189 rotation[3*i+j] /*[i][j]*/ = 0; in icvPOSIT()
192 rotation[3*i+j] /*[i][j]*/ += invMatrix[j * N + k] * imgVectors[i * N + k]; in icvPOSIT()
197 inorm = rotation[0] /*[0][0]*/ * rotation[0] /*[0][0]*/ + in icvPOSIT()
198 rotation[1] /*[0][1]*/ * rotation[1] /*[0][1]*/ + in icvPOSIT()
199 rotation[2] /*[0][2]*/ * rotation[2] /*[0][2]*/; in icvPOSIT()
[all …]
/external/chromium_org/native_client_sdk/src/gonacl_appengine/static/bullet/
Dscenes.js23 body.rotation = {};
24 body.rotation.x = ( Math.random() * 360 ) * Math.PI / 180;
25 body.rotation.y = ( Math.random() * 360 ) * Math.PI / 180;
26 body.rotation.z = ( Math.random() * 360 ) * Math.PI / 180;
51 body.rotation = {};
52 body.rotation.x = ( Math.random() * 360 ) * Math.PI / 180;
53 body.rotation.y = ( Math.random() * 360 ) * Math.PI / 180;
54 body.rotation.z = ( Math.random() * 360 ) * Math.PI / 180;
94 body.rotation = {};
95 body.rotation.x = 0.0;
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/audio/
DListener.java42 private Quaternion rotation; field in Listener
49 rotation = new Quaternion(); in Listener()
55 rotation = source.rotation.clone(); in Listener()
78 return rotation; in getRotation()
86 return rotation.getRotationColumn(0); in getLeft()
90 return rotation.getRotationColumn(1); in getUp()
94 return rotation.getRotationColumn(2); in getDirection()
103 public void setRotation(Quaternion rotation) { in setRotation() argument
104 this.rotation.set(rotation); in setRotation()
/external/qemu/android/skin/
Dimage.c53 rotate_image( void* data, unsigned width, unsigned height, SkinRotation rotation ) in rotate_image() argument
61 switch (rotation & 3) in rotate_image()
182 h += desc->rotation*1573; in skin_image_desc_hash()
193 return (a->rotation == b->rotation && in skin_image_desc_equal()
390 node->desc.path, node->desc.rotation, node->w*node->h ); in skin_image_cache_remove()
475 if (desc->rotation == SKIN_ROTATION_0 && in skin_image_create()
488 desc0.rotation = SKIN_ROTATION_0; in skin_image_create()
497 if (desc->rotation == SKIN_ROTATION_90 || in skin_image_create()
498 desc->rotation == SKIN_ROTATION_270) in skin_image_create()
508 desc->rotation ); in skin_image_create()
[all …]
/external/chromium_org/mojo/examples/sample_app/
Dspinning_cube.cc254 ESMatrix rotation; in Rotate() local
271 rotation.m[0][0] = (one_minus_cos * xx) + cos_angle; in Rotate()
272 rotation.m[0][1] = (one_minus_cos * xy) - zs; in Rotate()
273 rotation.m[0][2] = (one_minus_cos * zx) + ys; in Rotate()
274 rotation.m[0][3] = 0.0F; in Rotate()
276 rotation.m[1][0] = (one_minus_cos * xy) + zs; in Rotate()
277 rotation.m[1][1] = (one_minus_cos * yy) + cos_angle; in Rotate()
278 rotation.m[1][2] = (one_minus_cos * yz) - xs; in Rotate()
279 rotation.m[1][3] = 0.0F; in Rotate()
281 rotation.m[2][0] = (one_minus_cos * zx) - ys; in Rotate()
[all …]
/external/jmonkeyengine/engine/src/bullet-native/
DjmeMotionState.cpp65 void jmeMotionState::setKinematicRotation(JNIEnv* env, jobject rotation) { in setKinematicRotation() argument
66 jmeBulletUtil::convert(env, rotation, &worldTransform.getBasis()); in setKinematicRotation()
70 void jmeMotionState::setKinematicRotationQuat(JNIEnv* env, jobject rotation) { in setKinematicRotationQuat() argument
71 jmeBulletUtil::convertQuat(env, rotation, &worldTransform.getBasis()); in setKinematicRotationQuat()
75 bool jmeMotionState::applyTransform(JNIEnv* env, jobject location, jobject rotation) { in applyTransform() argument
80 jmeBulletUtil::convertQuat(env, &worldTransform.getBasis(), rotation); in applyTransform()
/external/jmonkeyengine/engine/src/core/com/jme3/cinematic/events/
DMotionTrack.java68 protected Quaternion rotation; field in MotionTrack
202 oc.write(rotation, "rotation", Quaternion.IDENTITY); in write()
213 rotation = (Quaternion) in.readSavable("rotation", Quaternion.IDENTITY); in read()
239 if (rotation != null) { in computeTargetDirection()
242 q2.multLocal(rotation); in computeTargetDirection()
247 if (rotation != null) { in computeTargetDirection()
248 spatial.setLocalRotation(rotation); in computeTargetDirection()
271 control.rotation = rotation.clone(); in cloneForSpatial()
380 return rotation; in getRotation()
390 public void setRotation(Quaternion rotation) { in setRotation() argument
[all …]
/external/jmonkeyengine/engine/src/bullet-common/com/jme3/bullet/collision/shapes/infos/
DChildCollisionShape.java21 public Matrix3f rotation; field in ChildCollisionShape
27 public ChildCollisionShape(Vector3f location, Matrix3f rotation, CollisionShape shape) { in ChildCollisionShape() argument
29 this.rotation = rotation; in ChildCollisionShape()
36 capsule.write(rotation, "rotation", new Matrix3f()); in write()
43 rotation = (Matrix3f) capsule.readSavable("rotation", new Matrix3f()); in read()
/external/jmonkeyengine/engine/src/core/com/jme3/input/
DChaseCamera.java62 protected float rotation = 0; field in ChaseCamera
75 protected float targetRotation = rotation;
271 …pos.set(hDistance * FastMath.cos(rotation), (distance) * FastMath.sin(vRotation), hDistance * Fast… in computePosition()
346 if (targetRotation - rotation > trailingRotationInertia) { in updateCamera()
347 targetRotation = rotation + trailingRotationInertia; in updateCamera()
348 } else if (targetRotation - rotation < -trailingRotationInertia) { in updateCamera()
349 targetRotation = rotation - trailingRotationInertia; in updateCamera()
379 … if (targetRotation - rotation > FastMath.PI || targetRotation - rotation < -FastMath.PI) { in updateCamera()
392rotation = FastMath.interpolateLinear(trailingLerpFactor, rotation, targetRotation); in updateCamera()
395 if (targetRotation + 0.01f >= rotation && targetRotation - 0.01f <= rotation) { in updateCamera()
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/animation/
DBone.java437 public void setUserTransforms(Vector3f translation, Quaternion rotation, Vector3f scale) { in setUserTransforms() argument
447 localRot = localRot.mult(rotation); in setUserTransforms()
456 public void setUserTransformsWorld(Vector3f translation, Quaternion rotation) { in setUserTransformsWorld() argument
463 worldRot.set(rotation); in setUserTransformsWorld()
468 attachNode.setLocalRotation(rotation); in setUserTransformsWorld()
477 public Transform getCombinedTransform(Vector3f position, Quaternion rotation) { in getCombinedTransform() argument
478 rotation.mult(localPos, tmpTransform.getTranslation()).addLocal(position); in getCombinedTransform()
479 tmpTransform.setRotation(rotation).getRotation().multLocal(localRot); in getCombinedTransform()
508 void setAnimTransforms(Vector3f translation, Quaternion rotation, Vector3f scale) { in setAnimTransforms() argument
518 localRot.set(initialRot).multLocal(rotation); in setAnimTransforms()
[all …]
DAnimationFactory.java78 Quaternion rotation = new Quaternion(); field in AnimationFactory.Rotation
89 rotation.loadIdentity(); in Rotation()
93 rotation.set(rot); in set()
95 rotation.toAngles(a); in set()
101 rotation.fromAngles(a); in set()
229 public void addTimeRotation(float time, Quaternion rotation) { in addTimeRotation() argument
230 addKeyFrameRotation((int) (time / tpf), rotation); in addTimeRotation()
241 public void addKeyFrameRotation(int keyFrameIndex, Quaternion rotation) { in addKeyFrameRotation() argument
243 r.set(rotation); in addKeyFrameRotation()
434 …rotations[j] = rot.slerp(((Rotation) keyFrames[i]).rotation, ((Rotation) keyFrames[key]).rotation,… in interpolate()
[all …]
/external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/collision/shapes/
DCompoundCollisionShape.java81 public void addChildShape(CollisionShape shape, Vector3f location, Matrix3f rotation) { in addChildShape() argument
85 Transform transA = new Transform(Converter.convert(rotation)); in addChildShape()
87 Converter.convert(rotation, transA.basis); in addChildShape()
88 children.add(new ChildCollisionShape(location.clone(), rotation.clone(), shape)); in addChildShape()
92 private void addChildShapeDirect(CollisionShape shape, Vector3f location, Matrix3f rotation) { in addChildShapeDirect() argument
96 Transform transA = new Transform(Converter.convert(rotation)); in addChildShapeDirect()
98 Converter.convert(rotation, transA.basis); in addChildShapeDirect()
146 addChildShapeDirect(child.shape, child.location, child.rotation); in loadChildren()
/external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/collision/shapes/
DCompoundCollisionShape.java80 public void addChildShape(CollisionShape shape, Vector3f location, Matrix3f rotation) { in addChildShape() argument
87 children.add(new ChildCollisionShape(location.clone(), rotation.clone(), shape)); in addChildShape()
88 addChildShape(objectId, shape.getObjectId(), location, rotation); in addChildShape()
92 private void addChildShapeDirect(CollisionShape shape, Vector3f location, Matrix3f rotation) { in addChildShapeDirect() argument
99 addChildShape(objectId, shape.getObjectId(), location, rotation); in addChildShapeDirect()
132 …ivate native long addChildShape(long objectId, long childId, Vector3f location, Matrix3f rotation); in addChildShape() argument
154 addChildShapeDirect(child.shape, child.location, child.rotation); in loadChildren()
/external/chromium_org/ash/display/
Ddisplay_info_unittest.cc19 EXPECT_EQ(gfx::Display::ROTATE_0, info.rotation()); in TEST_F()
26 EXPECT_EQ(gfx::Display::ROTATE_0, info.rotation()); in TEST_F()
32 EXPECT_EQ(gfx::Display::ROTATE_0, info.rotation()); in TEST_F()
38 EXPECT_EQ(gfx::Display::ROTATE_90, info.rotation()); in TEST_F()
44 EXPECT_EQ(gfx::Display::ROTATE_270, info.rotation()); in TEST_F()
/external/jmonkeyengine/engine/src/core/com/jme3/renderer/
DCamera.java130 protected Quaternion rotation; field in Camera
223 rotation = new Quaternion(); in Camera()
270 cam.rotation = rotation.clone(); in clone()
297 rotation.set(cam.rotation); in copyFrom()
595 return rotation; in getRotation()
606 return rotation.getRotationColumn(2); in getDirection()
616 return rotation.getRotationColumn(0); in getLeft()
626 return rotation.getRotationColumn(1); in getUp()
637 return rotation.getRotationColumn(2, store); in getDirection()
647 return rotation.getRotationColumn(0, store); in getLeft()
[all …]
/external/chromium_org/third_party/libjingle/source/talk/media/base/
Dvideocommon.cc159 int rotation, in ComputeCrop() argument
162 if (rotation == 90 || rotation == 270) { in ComputeCrop()
171 ASSERT(rotation == 0 || rotation == 90 || rotation == 180 || rotation == 270); in ComputeCrop()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowDisplay.java25 private int rotation = Surface.ROTATION_0; field in ShadowDisplay
61 return rotation; in getRotation()
125 public void setRotation(int rotation) { in setRotation() argument
126 this.rotation = rotation; in setRotation()
/external/valgrind/main/memcheck/tests/
Dbug287260.c5 signed int rotation : 10; member
13 r.rotation = 45; in main()
14 fprintf (stderr, "%d\n", r.rotation); in main()
/external/qemu/android/
Dframebuffer.c79 int rotation, in qframebuffer_init() argument
84 rotation &= 3; in qframebuffer_init()
194 qframebuffer_rotate( QFrameBuffer* qfbuff, int rotation ) in qframebuffer_rotate() argument
198 if ((rotation ^ qfbuff->rotation) & 1) { in qframebuffer_rotate()
209 qfbuff->rotation = rotation; in qframebuffer_rotate()
212 extra->fb_rotate( extra->fb_opaque, rotation ); in qframebuffer_rotate()
Dframebuffer.h53 int rotation; /* rotation to be applied when displaying */ member
79 int rotation,
110 typedef void (*QFrameBufferRotateFunc)( void* opaque, int rotation );
173 qframebuffer_rotate( QFrameBuffer* qfbuff, int rotation );
/external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/objects/
DPhysicsRigidBody.java163 public void setPhysicsRotation(Matrix3f rotation) { in setPhysicsRotation() argument
165 Converter.convert(rotation, tempTrans.basis); in setPhysicsRotation()
174 public void setPhysicsRotation(Quaternion rotation) { in setPhysicsRotation() argument
176 Converter.convert(rotation, tempTrans.basis); in setPhysicsRotation()
211 public Matrix3f getPhysicsRotationMatrix(Matrix3f rotation) { in getPhysicsRotationMatrix() argument
212 if (rotation == null) { in getPhysicsRotationMatrix()
213 rotation = new Matrix3f(); in getPhysicsRotationMatrix()
216 return Converter.convert(tempTrans.basis, rotation); in getPhysicsRotationMatrix()
231 public Quaternion getPhysicsRotation(Quaternion rotation){ in getPhysicsRotation() argument
232 if (rotation == null) { in getPhysicsRotation()
[all …]
/external/chromium_org/ui/gfx/
Dinterpolated_transform_unittest.cc30 gfx::Transform rotation; in TEST() local
31 rotation.Rotate(i); in TEST()
33 CheckApproximatelyEqual(rotation, interpolated); in TEST()
35 CheckApproximatelyEqual(rotation, interpolated); in TEST()
127 scoped_ptr<ui::InterpolatedTransform> rotation( in GetScreenRotation() local
151 rotation->SetChild(translation.release()); in GetScreenRotation()
152 to_return->SetChild(rotation.release()); in GetScreenRotation()
196 scoped_ptr<ui::InterpolatedTransform> rotation( in GetMaximize() local
203 rotation.release())); in GetMaximize()
/external/chromium_org/third_party/libjingle/source/talk/media/webrtc/
Dwebrtcvideoframe.cc122 int64 elapsed_time, int64 time_stamp, int rotation) { in Init() argument
124 pixel_height, elapsed_time, time_stamp, rotation); in Init()
131 frame->time_stamp, frame->rotation); in Init()
135 if (CanonicalFourCC(frame->fourcc) != FOURCC_I420 || frame->rotation != 0 || in Alias()
148 frame->rotation); in Alias()
165 size_t pixel_height, int64 elapsed_time, int64 time_stamp, int rotation) { in Alias() argument
170 elapsed_time, time_stamp, rotation); in Alias()
284 int64 time_stamp, int rotation) { in Attach() argument
296 rotation_ = rotation; in Attach()
333 int64 elapsed_time, int64 time_stamp, int rotation) { in Reset() argument
[all …]
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/objects/
DObjectHelper.java310 Quaternion rotation = localMatrix.toRotationQuat(); in getTransformation() local
318 y = rotation.getY(); in getTransformation()
319 float z = rotation.getZ(); in getTransformation()
320 rotation.set(rotation.getX(), z, -y, rotation.getW()); in getTransformation()
328 Transform t = new Transform(translation, rotation); in getTransformation()
367 Quaternion rotation = result.toRotationQuat(); in getMatrix() local
374 y = rotation.getY(); in getMatrix()
375 float z = rotation.getZ(); in getMatrix()
376 rotation.set(rotation.getX(), z, -y, rotation.getW()); in getMatrix()
384 result.setRotationQuaternion(rotation); in getMatrix()
/external/chromium_org/chrome/browser/extensions/api/system_display/
Ddisplay_info_provider_chromeos.cc34 bool IsValidRotationValue(int rotation) { in IsValidRotationValue() argument
35 return rotation == 0 || rotation == 90 || rotation == 180 || rotation == 270; in IsValidRotationValue()
206 info.bounds_origin_y || info.rotation || info.overscan)) { in ValidateParamsForDisplay()
235 if (info.rotation && !IsValidRotationValue(*info.rotation)) { in ValidateParamsForDisplay()
332 if (info.rotation) { in SetInfoImpl()
334 DegreesToRotation(*info.rotation)); in SetInfoImpl()

1234567891011