The code is not related to blitzplus/2d/3d, it was written in the b3d IDE but it's simply the generalized syntax that guides it. So it could be compiled by any of them(just to clarify).
It's just maths, there are no graphics dependant functions involved.
It's just maths, there are no graphics dependant functions involved.