okay, here''s the situation:
i''ve built a fairly robust sprite class, and up until
recently i''ve used x and y coords to keep track of where the
sprite is located. that works fine and dandy, although
im wanting to do somethign that''s a bit more intuitive:
i''d like to store a vector for the direction the sprite
is facing/traveling, and a variable for the speed it''s
traveling at. the only problem is this: i suck at vector math
and have no idea where to start

for example: i''m aware of how to store a direction vector and
how to change it, but im not quite sure how to translate
this information into useful x/y coordinates. and since i''ve
obviously never tried something along these lines, i dont even
know if it''s a good means of moving a sprite.
in my class i want to basically control a sprite''s movement
with three public members:
CVector direction;
double speed;
void CSprite::Update(); // which would translate the vector information into usable x/y coordinates
sorry if this post is a bit of a mess, my thoughts aren''t 100%
on how to go about this. anybody got any leads?
-eldee
;another space monkey;
[ Forced Evolution Studios ]