Questions tagged [rotation]

A rotation is a circular movement of an object around a center (or point) of rotation. On a mobile device, it indicates the change of orientation.

A three-dimensional object rotates always around an imaginary line called a rotation axis. If the axis is within the body, and passes through its center of mass the body is said to rotate upon itself, or spin. A rotation about an external point, e.g. the Earth about the Sun, is called a revolution or orbital revolution, typically when it is produced by gravity.

Mathematically, a rotation is a rigid body movement which, unlike a translation, keeps a point fixed. This definition applies to rotations within both two and three dimensions (in a plane and in space, respectively.)

A rotation is commonly represented using , a rotation or .

On a mobile device, it indicates the change of orientation.

12013 questions
3
votes
2 answers

Google maps API, custom tilt, rotation and stuff

I'm trying to display a map just like Google does here https://www.google.fr/maps With google maps API, I'm struggling at finding the following : makeing ctrl + drag change the tilt programmatically setting the tilt to 0, but keep 3D imagery (for…
Cyril CHAPON
  • 3,556
  • 4
  • 22
  • 40
3
votes
1 answer

Orient text vertically

I would like to set every character of label to vertical as shown below: G R A P H L A B L E Any help is appreciated, you can find the code below: var centerG = g.append('g') .attr('x', ((width / 2) - (barWidth / 2))) .attr('transform',…
Prashant Parekh
  • 428
  • 1
  • 6
  • 27
3
votes
4 answers

Control rotation of a 3D object using the touchscreen in openGL

I'm a 4th year computer engineering student and have some experience with Android dev. I am working on an application that has a 3D component to it which requires me to be able to rotate it around. I was looking at the example at the android…
Maqsood
  • 478
  • 6
  • 10
3
votes
1 answer

How do I rotate a triangle around an edge?

How can a triangle, made with three.js, be rotated around one of its edges? When I try to rotate it, it does around its center as it seems. The triangle is made by: var triangleMesh; var triangleGeometry = new THREE.Geometry(); …
Paul
  • 126
  • 1
  • 11
3
votes
2 answers

Applying CSS transform rotation to an element using @font-face

I've been trying to apply a transform rule to some elements which also have a @font-face font applied to them. h1 { -webkit-transform: rotate(-1deg); -moz-transform: rotate(-1deg); -o-transform: rotate(-1deg); transform:…
Phil Powell
  • 424
  • 2
  • 5
3
votes
1 answer

how to rotate a bullet according to the player's rotation

I've finally figured out how to shoot bullets but now I want to rotate the origin of the bullets on the rotation of the players head. Now it's only shooting straight on the x line. The mobs are working fine. I only need to add in collision and the…
Ectrizz
  • 139
  • 2
  • 10
3
votes
0 answers

How could I get current rotation of image on Android 1.6?

How could I get current rotation of image on Android 1.6? As for android 2.0 I use ExifInterface , but it isn't available at android 1.6 I want realize smth like this on android 1.6 ExifInterface exif = new ExifInterface(path); int…
vic
  • 31
  • 2
3
votes
2 answers

Screen rotation using Display.getRotation()

I am trying to make it so my app never goes into portrait mode but is able to switch between the 2 landscape screen views. I know this can be done easily in Gingerbread (2.3) but I am having trouble doing it manually for the other versions of…
SamRowley
  • 3,435
  • 7
  • 48
  • 77
3
votes
2 answers

Images in NSImageViews randomly turned upside-down

So, I have this odd issue in my Cocoa app. A toolbar item, and some NSImageViews just render their image upside-down for no apparent reason. The toolbar item actually comes that way when I launch the App for some reason (the icon is assigned in…
Tristan
  • 3,058
  • 6
  • 40
  • 68
3
votes
2 answers

Aframe, 3dio scene: orientation changes

I used to upload a 3dio scene into a-frame via the bakedModelUrl which is described here:…
Anathapindika
  • 141
  • 1
  • 10
3
votes
2 answers

How to rotate thumbnail images on mouse hover?

Looking for JS library or code snippet (jQuery is allowed) that can rotate images after user moves cursor to image. For example, this functionality is implemented for video thumbnails in Dailymotion.com website. I am going to use this code for…
Galichev Anton
  • 360
  • 5
  • 14
3
votes
0 answers

CSS - Why 3D Carousel is blurry?

I'm making a 3D Carousel. Here is my code : 3D Carousel. #wrapper{ width:420px; height:279px; position:relative; margin:40px auto 40px auto; -webkit-perspective: 800px; perspective: 800px; } .carrousel{ position:absolute; …
Elie
  • 33
  • 3
3
votes
1 answer

How to draw an object and rotate it in oblique frontal projection

How to draw an object and rotate it in oblique frontal (dimetric) projection properly? An illustration of projection: I've already made a program (Pascal with Graph unit) which does it, but I think that it draws object incorrectly. program…
Artfaith
  • 1,183
  • 4
  • 19
  • 29
3
votes
1 answer

How to rotate a cube by its center

I am trying to rotate a "cube" full of little cubes using keyboard which works but not so great. I am struggling with setting the pivot point of rotation to the very center of the big "cube" / world. As you can see on this video, center of front…
Ady96
  • 686
  • 4
  • 12
  • 35
3
votes
1 answer

spinningwheel animation not accurate

To gain experience in android I'm making a decisionmaking app. I'm trying to add a spinning wheel (wheel of fortune like). I have an animation that works fine (just need some little tweaking but fine for now). The problem I'm having is to detect…
JC97
  • 1,530
  • 2
  • 23
  • 44
1 2 3
99
100