Is there an easy way for a newbie to allow Point to accept doubles or is there any alternative?
<p>I am doing some computation in Java and it worked fine but I noticed my numbers were slightly off from my python implementation.  It took me like an entire day but I believe this is due to me having to cast my data to INT to use point.  I am very new so I could be wrong but I read in the <a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/awt/Point.html" rel="nofollow">java docs</a> that it seems to accept ints only(I really really hope I misunderstood it). The reason I really liked point was because my data was in a similar format and I did not want duplicates.  Data format example: (1,0), (1,2),(10,2),etc..</p>

<p>I guess my two questions are:</p>

<ol>
<li>Is there a way to get point to accept doubles? or is it going to be really difficult for a beginner to do?</li>
<li>If its not possible, are there any alternative data structures I can use to achieve the same thing(thought of hash map but I thought it would replace (1,0) with (1,1) which my program would consider unique)?</li>
</ol>

<p>Thanks</p>
