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