Quote Originally Posted by Daikrys
hi again,

iam back from my girlfriend and ready for programming
Ehehe good for you
ok i understand some of them but what are scale and normalize? :|
if that a function or procedure i dont find it ops:
or what are u mean by that?

i hope it isnt that stupid question i think it is :toothy:
As we say: there's no stupid questions, only stupid answares

Scale and normalize are two operation you can do with vectors.
As you know each vector (2d, 3d, and all others) have a length, (that can be calculated as: sqrt( x^2 + y^2 ), that is the suare root of the sum of all members squared).
Now if a vector have length 1 it is said to be normalized. Normalized vectors have special properties that comes handy.
Normalizing a vector means making it's length 1. So if a vector has length 15 then you divide each element by 15 and get a vector that's normalized (it points in the very same direction but it's length's 1)
Here's the code:

[pascal]
procedure Normalize(var Vec:TVector);
var Mag : TFloat;
begin
Mag := Magnitude(Vec); // the length
vec.x := Vec.x / Mag;
vec.y := Vec.y / Mag;
end;
[/pascal]

The scale is similar, it means that you multiply the length of a vector by a given number. If you scale a vector with length 5 by 2 you obtain a vector (that points in the same direction) with length 10.
Here's the code for scale:

[pascal]
procedure Scale(var vec:TVector; ascale:TFloat);
begin
vec.x := Vec.x * ascale;
vec.y := Vec.y * ascale;
end;
[/pascal]

IHTH
Bye!