PDA

View Full Version : Translating points by vectors...



Smidgey
01-15-2008, 09:34 AM
G'day,
I've been fooling around with ClanLib 0.8 for about half an hour, and I was just wondering if there is nice (i.e. overloaded operator) method of translating a point by a vector.

I understand that points and vectors are largely the same, but I like to keep velocity and crap like that in vector form because I like to do *vectory* kinds of things to them (calculate length etc).

I apologize in advance if these operators have already been overloaded and I just haven't noticed in my quick flick through the source, but otherwise I would be happy to knock together a patch for 0.9 if this would be a desirable feature...

On that note, is there a reason that vector classes are not derived from points??

rombust
01-15-2008, 01:20 PM
ClanLib 0.9 is your friend :)

Sources/API/Core/Math/cl_vector.h

I do not know about 0.8