adapt to js-2dmath complete, performance boost is visible (who knows the %)