Topic: a couple TForm functions

could someone give these a whirl please and see if the result is what you would expect?  it would be very much appreciated.

Function TFormPoint:Vector3df(x:Float,y:Float,z:Float,source:ISceneNode,dest:ISceneNode)
    Local lastTForm:Vector3df=_VECTOR3DF(x,y,z)

    ' first convert to world from the source
    If source Then source.getAbsoluteTransformation().transformVect(lastTForm)

    ' now from world to local
    If dest Then dest.getRelativeTransformation().transformVect(lastTForm)
    
    Return lastTForm
EndFunction

Function TFormVector:Vector3df(x:Float,y:Float,z:Float,source:ISceneNode,dest:ISceneNode)
    Local v:Vector3df=_VECTOR3DF(x,y,z)

    If source Then 
        source.getRelativeTransformation().transformVect(v)
        v=v.Minus(source.getPosition())
    EndIf
    
    If dest Then dest.getAbsoluteTransformation().transformVect(v)
    Return v
EndFunction

Re: a couple TForm functions

lol.
If I knew what it was supposed to do I could have a go at telling you if it worked.

Does TFormVector work like this,
X,Y,Z is a vector form source, (Lets say where the spacestation is from my spaceship)
and it returns a vector to the same place from somewhere else? (Say where the station is from my escape capsole)

Im afraid I cannot see what TFormPoint is doing

(You  probably need people who have used B3d to test it dont you?)

Re: a couple TForm functions

I tried Tformpoint and it works