Click here to Skip to main content
15,890,506 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: String matching algorithm Pin
vSoares18-May-09 7:01
professionalvSoares18-May-09 7:01 
GeneralRe: String matching algorithm Pin
harold aptroot18-May-09 7:43
harold aptroot18-May-09 7:43 
GeneralRe: String matching algorithm Pin
riced18-May-09 22:21
riced18-May-09 22:21 
AnswerRe: String matching algorithm Pin
PIEBALDconsult19-May-09 4:24
mvePIEBALDconsult19-May-09 4:24 
AnswerRe: String matching algorithm Pin
Fatbuddha 119-May-09 5:01
Fatbuddha 119-May-09 5:01 
QuestionView Port to Window mapping Pin
suvigna13-May-09 7:39
suvigna13-May-09 7:39 
AnswerRe: View Port to Window mapping Pin
Moreno Airoldi20-May-09 1:17
Moreno Airoldi20-May-09 1:17 
AnswerRe: View Port to Window mapping Pin
Luc Pattyn20-May-09 3:04
sitebuilderLuc Pattyn20-May-09 3:04 
Hi,

u = (x-xmin)* sx + umin
v = (y-ymin)* sy + vmin


are formulas to translate and scale a coordinate system (x,y) to a new system (u,v)

The inverse operation has exactly the same structure: swap every u and x, and every y and v, and you become the inverse formulas.
x = (u-umin)* su + xmin
y = (v-vmin)* sb + ymin


All you need now is the new constants
Substituting one set into the other should lead to two identity relations, hence:
su=1/sx and sv=1/sy

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

QuestionZ Score Pin
RugbyLeague13-May-09 5:13
RugbyLeague13-May-09 5:13 
AnswerRe: Z Score Pin
Moreno Airoldi20-May-09 1:21
Moreno Airoldi20-May-09 1:21 
QuestionSpell-checker for names Pin
dybs10-May-09 6:25
dybs10-May-09 6:25 
AnswerRe: Spell-checker for names Pin
Luc Pattyn10-May-09 6:37
sitebuilderLuc Pattyn10-May-09 6:37 
GeneralRe: Spell-checker for names Pin
dybs10-May-09 10:38
dybs10-May-09 10:38 
GeneralRe: Spell-checker for names Pin
Luc Pattyn10-May-09 10:44
sitebuilderLuc Pattyn10-May-09 10:44 
AnswerRe: Spell-checker for names Pin
Henry Minute10-May-09 6:52
Henry Minute10-May-09 6:52 
AnswerRe: Spell-checker for names Pin
Pete O'Hanlon26-May-09 2:23
mvePete O'Hanlon26-May-09 2:23 
Questionpumping lema and regular languages Pin
Sadaiyappan8-May-09 6:39
Sadaiyappan8-May-09 6:39 
AnswerRe: pumping lema and regular languages Pin
Luc Pattyn8-May-09 6:51
sitebuilderLuc Pattyn8-May-09 6:51 
AnswerRe: pumping lema and regular languages Pin
Alan Balkany11-May-09 3:35
Alan Balkany11-May-09 3:35 
QuestionAlgorithm to sort list Pin
TheConfusedGuy7-May-09 11:27
TheConfusedGuy7-May-09 11:27 
AnswerRe: Algorithm to sort list Pin
harold aptroot7-May-09 12:24
harold aptroot7-May-09 12:24 
AnswerRe: Algorithm to sort list Pin
Luc Pattyn7-May-09 12:56
sitebuilderLuc Pattyn7-May-09 12:56 
AnswerRe: Algorithm to sort list Pin
Luc Pattyn7-May-09 13:55
sitebuilderLuc Pattyn7-May-09 13:55 
AnswerRe: Algorithm to sort list [modified] Pin
dybs7-May-09 17:55
dybs7-May-09 17:55 
GeneralRe: Algorithm to sort list (Reply to All) Pin
TheConfusedGuy7-May-09 18:27
TheConfusedGuy7-May-09 18:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.