Yep, that'll do. I think perhaps you would have been better off using surface normals and vectors, and comparing the vector made by the surface normal to the vector made by the direction of the light hitting said surface. No math involved and intensity can be guessed by comparing the directions of the two vectors (arrows). It's a visual method that's pretty immediately understood so long as some simple definitions are taken care of first.