On 8/5/07, <b class="gmail_sendername">Frank Buss</b> <<a href="mailto:fb@frank-buss.de">fb@frank-buss.de</a>> wrote:<br><div><span class="gmail_quote">> Nearly anything works without thinking too much about the types, but I
<br>> don't like the use of fromInteger in the average and main functions. Is it<br>> possible that the integers are automaticly converted to floats?<br><br>I recommend using Float or Double instead of Int for your point coordinates. You'll eliminate the need to convert to Float/Double. More importantly, your whole model will then be resolution independent, supporting continuous scaling, sub-pixel translation, rotation, etc. See
<a href="http://conal.net/Pan">http://conal.net/Pan</a> for examples & papers.<br><br>Cheers, - Conal<br><br></span></div><br>