renamed quatFromDir to quatFromViewDirection