Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #18625
| From | "Tony" <tony.johansson@inport.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Graphic and coordinate system |
| Date | 2013-02-25 15:06 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <kgfr30$3p7$1@dont-email.me> (permalink) |
How do I transform my values into my coordinate system All values is in pixels In my coordinate system origo is located in (40,495) The display area that I can use is from X=40 to x=750 and from y=495 to y=55 When you go down in the coordinate system the y value is increasing and when you go to the right the x value is increasing. The y-axis is showing time from 12:00 to 20:00 hours and the x-axis is showing from 0 to 800 So I can have values like [13:10, 190] [13:40, 240] [14:25, 390] [15:10, 431] [16:10, 554] [17:10, 643] [18:10, 740] I just wonder if someone has a algoritm that I can use to transform my values into this coordinate system. The y-axis is time and x-axis is distance ? //Tony
Back to comp.lang.javascript | Previous | Next | Find similar | Unroll thread
Graphic and coordinate system "Tony" <tony.johansson@inport.com> - 2013-02-25 15:06 +0100
csiph-web