vector mirroring or bouncing?

Blitz3D Forums/Blitz3D Programming/vector mirroring or bouncing?

Function mirror(vx#,vy#,nx#,ny#)
dot# = vx * nx + vy * ny
target\x = vx-2.0 * nx * dot
target\y = vy-2.0 * ny * dot
End Function