Vector.normalize()
This example demonstrates the Vector.normalize() method.
Two lines follow the mouse-cursor, but the thick one is limited
to the radius of the circle by using normalize().multiply(circleRadius)
on the direction Vector computed from the difference of the
current pointer position and the circle center.
line.actions.addAction(function() {
let dir = this.malkasten.pointer
.subtract(this.position)
.normalize();
this.to = this.position.add(
dir.multiply(c1.radius - c1.options.lineWidth)
);
});