» Home » rotating » Page 1
iPhone: Rotating a drawing without rotating the view within which it is drawn
by Dirigible in Mobile Programming

Anyone who has gone through the Stanford CS193P class on iTunes will recognize this from Assignment 3 (HelloPoly). For those not familiar:


I have a custom view called polyView, an instance of PolygonView, a subclass of UIView. On this view, I use CGContextDrawLinearGradient to paint a color gradient over the entire rectangular view. Then I use CGContextDrawPath to stroke and fill


rotating UIbutton, while rotating parentview they reside with in
by Ted Leung in Operating Systems

I have one UIView that I rotate manually when orientation changes, this UIView hosts a number of buttons, I want to rotate them too based on the change in orientation.


I am doing this :


CGAffineTransform rotation = CGAffineTransformMakeRotation(M_PI / -4);
[UIView animateWithDuration:0.25 animations:^
{
self.parentView.firstButton.tra

iPhone app stop rotating after few touches or sometimes stop rotating at all, other times works just fine. Any idea where to look for the problem?
by Texas in Mobile Programming

iPhone app stop rotating after few touches or sometimes stop rotating at all, other times works just fine. Any idea where to look for the problem?


My app is designed to support auto-rotate and works fine previously until I added some code that move JSOn data loading to another thread.


How to make a rotating disk static and the surrounding static structure rotating in a video using MATLAB?
by goffi in Development Tools & Services

I have a video in which there is a disk like structure which keeps rotating about an axis and is surrounded by a static structure. I have a point of interest which keeps rotating and makes an angle with the center of the rotor.



I have to make the rotor static and the surrounding static structure rotating by rotating each frame by the angle in opposite direction. Also t


iphone: rotating flipped view when rotating visible view
by HidingInABunker in Mobile Programming

I have a resizing issue when rotating a view controller that has two views which I switch between using the flip animation.
The problem appears if i do the following steps:


Rotate the device when viewing the tableview.
Click the info button.
Rotate the device (infoView appears stretched).
Click on info button (tableview appears stretched)

It appears that the


iOS not rotating
by JoeKaras in Operating Systems

I have a view controller with a navigation item. The view inside the navigation item rotates, but the navigation bar at top does not. I don't understand why only part of the application is rotating.

TAGS : rotating

Rotating do while PHP
by Jan D in PHP

Well I have unusual question I think. I am making a web site and the products must be shown as a line I will past a link for better understanding.


http://partyclub.mdkbg.com/products_carbonated_mix.html


Clicking the bottle in the right will change the products to the next. But if you keep clicking will see that when the end of DB rows is near the the small 3 bottles in t

TAGS : Rotating while

Rotating images :
by Apejoy in Web Design

Just wondering if someone can help me code the following.


I want to use a fading effect to rotate a series of images (7 in total), within the CSS and code already defined below:


<style="text/css">
.rotate {float: left;width: 160px;height: 215px;background-color: #FFFFFF;border: 2px solid #0066CC;margin: 0px 10px 10px 0px;text-align: center;overflow: hidden;
TAGS : Rotating images

Rotating cubes in XNA
by jrok96 in Web Design

So far I have managed to create a Quaternion for rotation. Only problem is now, how do I apply it to only certain cubes? As when I press the right key on the keyboard at the moment, every cube is being rotated continiously around the origin.


For reference, I have 8 cubes positioned in a similar set-up to that of a Rubik's Cube (2x2x2). So when I press the right/left ar

TAGS : Rotating cubes

Rotating a sprite in XNA
by clamum in Programming Languages

So i wanted to rotate my sprite so that it was always looking at the mouse position. I am using the following code:


public void draw(SpriteBatch sb)
{
int mouse_x = Mouse.GetState().X;
int mouse_y = Mouse.GetState().Y;
float angles = Calc.getAngle(new Vector2(mouse_x, mouse_y));
sb.Draw(texture, position, null,
TAGS : Rotating sprite

Next



Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .