three.js - common math