Added PerpDot, renamed normal function.