Function: snapAngle()
snapAngle(
from,to):Point
Defined in: src/lib/selection/geometry/index.ts:56
Snap a point so the line from from runs at a multiple of 45°, keeping the line's length along that direction.
Parameters
from
to
Returns
Example
snapAngle({ x: 0, y: 0 }, { x: 10, y: 1 }); // { x: 10, y: 0 }