rotation Questions

4

Solved

I'd like to randomly rotate an image tensor (B, C, H, W) around it's center (2d rotation I think?). I would like to avoid using NumPy and Kornia, so that I basically only need to import from the to...
Plovdiv asked 4/10, 2020 at 17:29

1

Solved

Given we can do a left-rotate (and subsequently a right-rotate) of an array only in terms of calls to reverse, like so: void rotl(std::string &s, const int d) { std::reverse(s.begin() , s.begi...
Limekiln asked 18/9 at 8:32

4

Solved

I have a file called Poller.log and it's appended by log details all the time. I want this log file to be rotated everyday and limited by 30 days. Thus, the code works well. Now I want this logs t...
Muniz asked 4/3, 2011 at 7:41

5

I have calculated an axis angle rotations for each axis. If I only apply one of the three rotations, the objects rotates as expected. If I multiply the rotation matrixes, as you would normally do ...
Shanan asked 3/4, 2017 at 16:25

4

Solved

I've got a series of elements, as shown in the image below: They are rotated 45 degrees to one side (the content inside -45 degrees, to remain upright). Now I'd like to rotate each element arou...
Pollerd asked 16/3, 2017 at 12:46

5

Solved

How can I rotate a marker in leaflet? I will have a lot of markers, all with a rotation angle. I've tried this solution from runanet/coomsie at Leaflet on GitHub, but nothing happens with my marke...
Tryma asked 21/11, 2012 at 13:45

3

Solved

I have an orientation expressed with a quaternion and an angular velocity expressed as either a quaternion or a number (radians per second around the original orientation). I understand how to do t...
Subcontraoctave asked 13/6, 2014 at 3:22

6

Solved

I'm learning about unit quaternions and how to use them to represent and compose rotations. Wikipedia says they are more numerically stable than matrix representations, but doesn't give a reference...

3

I am editing an app where I added a new UIViewController to configure a multiplayer game in one layout. I have added two buttons for each player (top button, bot button). Each button generates an ...
Morelock asked 3/10, 2015 at 21:25

3

Solved

I want to create a 64-bit barrel shifter in verilog (rotate right for now). I want to know if there is a way to do it without writing a 65 part case statement? Is there a way to write some simple c...
Calkins asked 25/9, 2011 at 4:8

4

My root view controller's implementation of supportedInterfaceOrientations almost always returns UIInterfaceOrientationMaskAll, however there is one edge case where it returns UIInterfaceOrientatio...
Cathartic asked 31/10, 2012 at 1:47

4

Solved

I'm trying to rotate the map (or tileLayer) by x degrees. My research didn't produced any results that are not really dirty hacks and in my case doesn't work. Is there a native leaflet.js way of r...
Maneater asked 28/1, 2016 at 11:59

11

I'm working on a simple rotate routine which normalizes an objects rotation between 0 and 360 degrees. My C# code seems to be working but I'm not entirely happy with it. Can anyone improve on the c...
Colonel asked 27/10, 2009 at 2:2

5

Solved

I was wondering how I can create a vertical slider in swift. I have tried using .transform and then adding a rotate but this returned an exception and rotated the whole screen. I just need a verti...
Agronomy asked 19/4, 2015 at 15:32

3

Solved

In Android I can get the device yaw, roll and pitch using a GAME_ROTATION_VECTOR sensor. I need to do the same thing in Flutter, but I haven't been able to find anything but the sensors package, w...
Conduplicate asked 8/8, 2018 at 14:33

17

Solved

I have one of my activities which I would like to prevent from rotating because I'm starting an AsyncTask, and screen rotation makes it restart. Is there a way to tell this activity "DO NOT ROTATE...
Quadrennial asked 28/4, 2010 at 15:25

15

Solved

What I want to do is take a snapshot from my camera , send it to a server and then the server sends me back the image on a viewController. If the image is in portrait mode the image appears well on...
Pyongyang asked 26/7, 2012 at 10:42

2

By chance, is there a way to rotate the xticks in the graphic below (just to make it a bit more readable)? The usual sns.xticks() doesn't work in the new seaborn.objects development (which is amazi...
Exceptional asked 7/12, 2022 at 11:17

3

Solved

I have a small problem, I want to create 45 degree shadow for a picture. But if I use my code my object is rotating too. So I would like to ask for help with this problem. My code: .item { box...
Hypolimnion asked 11/8, 2015 at 12:2

28

Solved

I am using the following code to rotate a image in ImageView by an angle. Is there any simpler and less complex method available. ImageView iv = (ImageView)findViewById(imageviewid); TextView tv =...
Nastassia asked 24/1, 2012 at 4:0

3

Solved

I have a task to draw a specific graphic. As part of this task I need to rotate some dot's on 45 degrees. I've spent already 2 days trying to calculate a formula, but just couldn't get it right. I...
Catlin asked 4/12, 2012 at 2:47

6

Solved

Rotation is a style transform and in RN, you can rotate things like this render() { return ( <View style={{transform:[{rotate: '10 deg'}]}}> <Image source={require('./logo.png')} /&gt...
Iphigeniah asked 25/5, 2016 at 18:34

3

Solved

I want this object to rotate around its center rather than the top left corner. The code looks like this: switch (event.keyCode) { case 37: car.rotation = -90; car.x -= 5; break; So when i...
Presence asked 3/4, 2013 at 13:48

2

on this page: https://www.bcidaho.com/mammography/ if you click "find a screening center" a table of information comes up... how can i rotate the text in the last 5 cells? obviously cross browse...
Drunkard asked 2/7, 2010 at 14:42

4

I have been trying to wrap my brain around how to write code for rotation of binary tree. I looked at http://en.wikipedia.org/wiki/Tree_rotation and enfuzzled.com I have been staring at this for 2...
Gotcher asked 4/1, 2011 at 19:40

© 2022 - 2024 — McMap. All rights reserved.