I need some verification

Blitz3D Forums/Blitz3D Programming/I need some verification

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.

To calculate a point-light point in space, I have made this;

Test code!

lightDir0 = EntityX#( CubePoint01 , False ) - EntityX#( Light , True )
lightDir1 = EntityY#( CubePoint01 , False ) - EntityY#( Light , True )
lightDir2 = EntityZ#( CubePoint01 , False ) - EntityZ#( Light , True )

x# = EntityX#( Light , True ) + lightDir0 * extrudevalue
y# = EntityY#( Light , True ) + lightDir1 * extrudevalue
z# = EntityZ#( Light , True ) + lightDir2 * extrudevalue

It will calculate the right values from the light view.

My question is then; can it be this simple or have I missed something out?

[Edit]
O_o