Quote:

@Lukas: Strangely, I get random numbers with your suggestion.




If you change this:
Quote:

vecPoint1_Point2=calculateVector(Point1,Point2);



to:
Code:
vec_set(vecPoint1_Point2,calculateVector(Point1,Point2));


it schould work