Re: Should I modify SFML???
Posted: Tue Feb 08, 2011 6:02 pm
Why the hell are you input values 19 digits long? Seriously?THe Floating Brain wrote:God I feel realy embaressedDamn C++ book lied to meGyroVorbis wrote: Honestly, why in fuck's name would you be using doubles? Why would you EVER need that kind of precision? That's only for exact numbers and scientific calculations.
And keep in mind that there is not a 1-to-1 relationship between an IEEE 32-bit single precision float (the variable you know as "float") and an integer. How many bytes are used to represent both? Float = 4 bytes. Integer = 4 bytes. They are literally the same size. They are literally both only capable of holding a permutation of their number of bits.Not any more I did though beacuse I am apparently a terrible programmerN64vSNES wrote:So...You want to fuck with SFML's source because you want to use a double over a float?19 digets.xiphirx wrote:I'm really confused....
How big are your input values? Do you know what the range of a long is?...Why do you think that?xiphirx wrote:This is where your values are messed up, I think...Code: Select all
//Go The Desired Speed.// GotoX *= Speed; GotoY *= Speed;
hence...xiphirx wrote: Just to note, it looks like you don't have a good grasp on vectors. If you did, you would have probably used SFML's own vector2f class :POkay so I finally think I have a rough idea of vectors and I wrote these functions