Top "Rotation" questions

A rotation is a circular movement of an object around a center (or point) of rotation.

iOS 6 rotations: supportedInterfaceOrientations doesn´t work?

I´m having this issue with iOS 6 SDK: I´m having some views that should be allowed to rotate (e.…

ios rotation ios6 screen-rotation
Android: Camera preview orientation in portrait mode

I'm using the camera to show preview only (not to take pictures or record videos). The app is always in …

android camera rotation orientation portrait
Screen orientation lock

Is there a reliable way to lock screen orientation on all Android devices? The code below works for my Nexus …

android locking rotation screen orientation
Python Array Rotation

So I am implementing a block swap algorithm in python. The algorithm I am following is this: Initialize A = arr[0..…

python arrays recursion rotation swap
What's the correct way to rotate a UILabel 90 degrees?

I'm attempting to rotate a UILabel 90 degrees within a UIView. The following snippet is an attempt to write something in …

swift rotation
Android camera resulted image should be rotated after the capture?

I'm writing an Android application that uses the camera. I'm setting camera display orientation to 90, my activity is in a …

android camera rotation
Euler angle to Quaternion then Quaternion to euler angle

I'm using lib glm (http://glm.g-truc.net/) for test quaternion but I've a problem; when I convert euler angle …

c++ math rotation quaternions euler-angles
CGAffineTransform Reset

3I have an image that gets manipulated by touch. Lets say its an image of an arrow that points up. …

iphone rotation reset cgaffinetransform
How to spin an android icon on its center point?

I have written the following to spin my icon on the center of the screen and instead it rotates around …

android animation rotation
UICollectionView - resizing cells on device rotate - Swift

I've created a UICollectionView, so that I can arrange views into neat columns. I'd like there to be a single …

swift rotation resize uicollectionview