mathematical calculation

Blitz3D Forums/Blitz3D Programming/mathematical calculation

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I wrote my own 3d math library for easier vector access

type vec
field x#,y#,z#
end type
a.vec=new vec
b.vec=new vec

SetVec a,1.2,5.6,1.7
SetVec b,3.2,1.3,5.7

AddVector(a,b)

e.t.c

The speed up varies on the command used, if I remember correctly some functions are upto 15% - 20% faster, especialy ones that use more than a few lines of math, like point/plane equations.

So there can be a noticable speed up in using DLLs

Tom