Minor optimization (use tmp variable for inverse calculated twice)
Minor optimization (use tmp variable for inverse calculated twice)

simquest/opensurgsim,simquest/opensurgsim,simquest/opensurgsim,simquest/opensurgsim