Function PointHitFace(ByVal PX As Single, ByVal PY As Single, ByVal Pz As Single, _ ByVal NX As Single, ByVal NY As Single, ByVal Nz As Single, ByVal vx As Single, _ ByVal vy As Single, ByVal vz As Single) As Boolean
'assumes a zero coordinate triangle 'so the center is subtracted from p 'before passed, with lengths of its 'edges and also the trianlge normal
'input px,py,pz = the point to test 'input nx,ny,nz = sides numeric len 'input vx,vy,vz = a triangle normal
PX = Abs(PX) PY = Abs(PY) Pz = Abs(Pz)
Dim a1 As Single Dim a2 As Single Dim a3 As Single
Appears in a x86 compiled MS VC++ 6.0 library "maxlandlib.dll," export "PointBehindPoly." Accepting unsigned shorts, as each six parameters, returning a zero result for a non hit. Collision using this C++ function indirectly is exampled in a game named MaxLand, written in Visual Basic 6.0 utilizing DirectX8. The game may be downloaded through this link here. ***The above function is not exactly the same for the bool output and signed variability.