Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #18625 > unrolled thread

Graphic and coordinate system

Started by"Tony" <tony.johansson@inport.com>
First post2013-02-25 15:06 +0100
Last post2013-02-25 15:06 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.javascript


Contents

  Graphic and coordinate system "Tony" <tony.johansson@inport.com> - 2013-02-25 15:06 +0100

#18625 — Graphic and coordinate system

From"Tony" <tony.johansson@inport.com>
Date2013-02-25 15:06 +0100
SubjectGraphic and coordinate system
Message-ID<kgfr30$3p7$1@dont-email.me>
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 

[toc] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web