The short answer is no since all the class attributes are floats not doubles.
The solution is to create a new class that does the same as PVector but using doubles. I did this by copying the source code for PVector then search and replace float with double, I had to modify the lerp and hashcode functions by hand but the result can be seem here
To use this class then create a new tab in your processing sketch called PVectorD.java (this is case sensitive) and copy the code from the above link into this tab. Instead of using PVector use PVectorD instead it should work just fine.
Thank you quarks... brilliant response and thanks for putting in the effort.
Just after I posted this I had a look at the PVector source and realised that i'd asked a stupid question and I thought about whether or not it would be possible to just go through and change all the floats to doubles.
I casted all my doubles to floats after the calculations in the sketches I've been working on and I had to split what was point.x point.y point.z into 3 separate variables. I'll give it another go using your vector doubles class.
thanks again for your help,
btw this is the sketch I was working on : http://www.openprocessing.org/visuals/?visualID=30430 I've been interested in strange attractors and fractals and a like ... a doubles vector class should come in handy with fractal sketches that require an extra amount of numerical precision.
Leave a comment on stphnmnslw's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic