Skip to content

Replaced sin/cos usage in drawAxis() with unit vector

This removes excessive calls to sin and cos in drawAxis().

The following construct is used to retain the sin and cos values:

  var armVector  = new Point2d(Math.cos(armAngle), Math.sin(armAngle));

This is a unit vector in the XY plane pointing into the direction of the camera arm.

Merge request reports

Loading