Search found 7 matches
- Sat Jun 19, 2010 4:00 am
- Forum: SVG / XML Code
- Topic: Angle of Rotation from a transform matrix
- Replies: 2
- Views: 5214
Re: Angle of Rotation from a transform matrix
Perfect. Thanks very much.
- Fri Jun 18, 2010 9:55 am
- Forum: SVG / XML Code
- Topic: Angle of Rotation from a transform matrix
- Replies: 2
- Views: 5214
Angle of Rotation from a transform matrix
Is there a way to get the angle of rotation from a svg transform matrix? for example: rectangle = x = 0 y = 0 width = 200 height = 200 then I rotate the rectangle by 45 degrees and get matrix(0.70710678,-0.70710678,0.70710678,0.70710678,-41.421356,100) is there a way I can extract the degree (in rad...
- Fri Jun 18, 2010 4:45 am
- Forum: SVG / XML Code
- Topic: Center point after rotation
- Replies: 5
- Views: 5803
Re: Center point after rotation
Never mind, I figured it out pretty easy actually I just wasn't thinking.
I just created vertices off of the first x,y and used your same formula then caluclated the distance accordingly.
I just created vertices off of the first x,y and used your same formula then caluclated the distance accordingly.
- Thu Jun 17, 2010 6:33 am
- Forum: SVG / XML Code
- Topic: Center point after rotation
- Replies: 5
- Views: 5803
question about width and height after rotation
I thought I'd try and figure this out on my own but I've been reading around at different websites trying to figure this out and now I am rather confused. Kind of coincides with the same thing. Here's the situation given the same example: start X = 0 start Y = 0 start width = 100 start height = 100 ...
- Thu Jun 17, 2010 1:23 am
- Forum: SVG / XML Code
- Topic: Center point after rotation
- Replies: 5
- Views: 5803
Re: Center point after rotation
Thank you very much. This is exactly what I needed.
- Wed Jun 16, 2010 6:43 am
- Forum: SVG / XML Code
- Topic: Center point after rotation
- Replies: 5
- Views: 5803
Center point after rotation
Hello, I'm wondering if anyone knows how to get the center point of a rectangle after it's been rotated. I've Changed the transform settings to "Preserved" in document properties so it always saves the starting x,y,width,height and then I just have to deal with the matrix. What I'm basical...
- Sun Jun 13, 2010 11:26 am
- Forum: SVG / XML Code
- Topic: Transform matrix
- Replies: 6
- Views: 12388
Re: Transform matrix
So like previously said. is there a way to get the exact x,y coordinates of a rectangle when it's been rotated. a non-rotated rectangle works fine but the moment it rotates the x and y get screwed up. I'm trying to use inkscape as a level editor which it seems to be perfect for. I'm basically just u...