Hello everybody,
could you please to a short look and tell me why my script is not working?
I've tested it with usual variables instead of vectors and it worked. But with vectors I only get 0,0,0 as result!
#include <acknex.h>
#include <default.c>
var Point1[3]={5,5,5};
var Point2[3]={2,2,2};
var vecPoint1_Point2[3];
function calculateVector(a,b)
{
return(vec_sub(a,b));
}
function main()
{
screen_color.blue=150;
vecPoint1_Point2=calculateVector(Point1,Point2);
PANEL* Anzeige=
{
digits (10, 10, 5, *, 1,vecPoint1_Point2[0]);
digits (10, 20, 5, *, 1,vecPoint1_Point2[1]);
digits (10, 30, 5, *, 1,vecPoint1_Point2[2]);
flags = VISIBLE;
}
}
Thanks for your response
