There are many commands that have not been documented very well. I think it is a great shame that a program as good and well used as Dark Basic Professional has such a bad reference manual.
Just earlier today I looked up the reference to SET OBJECT CULL. Here is a direct quote from the reference manual:
SET OBJECT CULL
This command will set the cull state of the specified object. Setting the cull to one will ensure the object is culled so that away-facing polygons are not drawn.
SYNTAX
SET OBJECT CULL Object Number, Flag
The user is left to assume that the flag has other settings that will perform other functions but you will never find out by reading the manual.
This is just one example of many. All of the 3D maths commands seem to suffer this problem also.
I have several suggestions:
1) Purchase the 'Beginners guide to Darkbasic game programming' book. It is expensive and aimed primarily at beginners (hence the name) but it does have a reference section which is
slightly more detailed than the darkbasic reference manual. Unfortunately it is for DBC only so there are no references for the DBP commands.
2) Follow this link
http://www.realgametools.net/glossary/index.php3?theme=1&level=2&document_id_select=3 It is an online reference site and
some of the commands are in some detail others, however, seem to be just a direct quote for the reference manual.
3) Set up a web site so that all Dark basic users may submit there own command references ultimately resulting in an online reference web site. I would do it myself but have no idea how to.
4) Finally what I would really like to see is a fully detailed reference manual available for download on the DBP website preferabley in PDF format that is updated every time a new patch is released.
To close. I am sorry if this sounds like a rant but I just feel it is necessary. As for your 3D maths problem - sorry I have no idea! But if items 3 or 4 are addressed then maybe we can both get some answers - fingers crossed eh?
Nine lives to choose from and I get stuck with this one!