How to get hitnormal and dotproduct?

Hi all, i am having no luck whatsoever with my psuedo code ot get both the hitnormal and dotproduct in Blender, in order to calculate reflection of a “laser” in the bge.
Can anyone help?