Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Passing Vectors to Functions

Author
Message
MORS GLADIVS
21
Years of Service
User Offline
Joined: 12th Oct 2002
Location:
Posted: 12th Oct 2002 22:45
How do you pass a vector to a function. When we attempt to do so it gives us an error. The problem seems to be that the function doesn't like the variable type, i.e. the fact that it is a vector.

Any help would be much appreciated.
The One Ring
21
Years of Service
User Offline
Joined: 15th Sep 2002
Location: United States
Posted: 13th Oct 2002 06:36
If its anything like passing a UDT to a function (or returning a UDT), it can't be done... Rich told me this after I had spent an hour or so trying to make that work...

AMD Athlon 900 256MB DDR
ATI Radeon All-In-Wonder 7500, ATI XPert 128
Sound Blaster Audigy Gamer
MORS GLADIVS
21
Years of Service
User Offline
Joined: 12th Oct 2002
Location:
Posted: 13th Oct 2002 09:06
Here is the code that I want to use for the function.



So of course v3Trans and v3Rot need to be vectors for how I want to do it. Of course we could instead just use individual variables but we'd rather use vectors.

Login to post a reply

Server time is: 2024-03-29 00:07:58
Your offset time is: 2024-03-29 00:07:58