XML Elves

XML Elves

<community>of XML and SVG Developers</community>


trouble with matrix

This is a discussion on trouble with matrix within the SVG Questions forums, part of the SVG Forums category; hello everyone, Can anyone tell me how the matrix works? i am using a matrix to transform the geographic y ...


Go Back   XML Elves > SVG Forums > SVG Questions

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Notices


Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-22-2004, 02:23 AM
seb
Guest
 
Posts: n/a
Default trouble with matrix

hello everyone,

Can anyone tell me how the matrix works? i am using a matrix to transform the geographic y into svg.
ex: transform="matrix(1 0 0 -1 0 293156.21565)". I woould like to know how to calculate the last number.

Thanks in nadvance,sebastien.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-22-2004, 04:19 AM
Anonymous
Guest
 
Posts: n/a
Default Re: trouble with matrix

Quote:
Originally Posted by seb
Can anyone tell me how the matrix works? i am using a matrix to transform the geographic y into svg.
ex: transform="matrix(1 0 0 -1 0 293156.21565)". I woould like to know how to calculate the last number.
Suppose that your geographic coordinates go from 0 to Xmax and 0 to Ymax, you can use
matrix(1 0 0 -1 0 -Ymax) to get your map in svg

If coordinates don't start from 0 but from Ymin for y, you have to use
matric(1 0 0 -1 0 Ymin - Ymax)

Michel

PS Suppose that viewBox is Xmin Ymin Xmax - Xmin Ymax - Ymin or that there is no attribute viewBox ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-22-2004, 05:23 AM
seb
Guest
 
Posts: n/a
Default trouble with matrix

Thanks Michel,

actually i am using another formula, it seems to work but i might be wrong. Tell me what you think about it.

viewbox=" xmin ymin width height"
mat6=(ymin*2+heigth)
transforme="matrix(1 0 0 -1 0 mat6");

sebastien
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-22-2004, 06:44 AM
Anonymous
Guest
 
Posts: n/a
Default trouble with matrix

These formula

transforme="matrix(1 0 0 -1 0 mat6");

seem good and surely better than I write .....

Michel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-22-2004, 09:38 AM
seb
Guest
 
Posts: n/a
Default trouble with matrix

Good i am getting better...

A plus,sebastien.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
matrix, trouble


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -6. The time now is 07:44 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0

Printer Ink Cartridge...
For the best printer ink cartridge you can find, click here.

HARD DISK DRIVE REPAIR RECOVERY MANCHESTER
We are in Manchester and we can fix your problems with hard disk drive repair and data recovery. Do not try to do it yourself!

ink cartridges Free UK Delivery on ink cartridges such as Canon, Dell, Epson, hp & Lexmark.

1 2 3 4 5 6 7 8 9 10