mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Fix arc line intersection, add tests to element line intersections
This commit is contained in:
parent
a50ac0ebff
commit
c53c37ba69
11 changed files with 292 additions and 589 deletions
|
@ -60,7 +60,8 @@ export const normalizeRadians = (angle: Radians): Radians => {
|
|||
export const cartesian2Polar = <P extends GenericPoint>([
|
||||
x,
|
||||
y,
|
||||
]: P): PolarCoords => polar(Math.hypot(x, y), radians(Math.atan2(y, x)));
|
||||
]: P): PolarCoords =>
|
||||
polar(Math.hypot(x, y), normalizeRadians(radians(Math.atan2(y, x))));
|
||||
|
||||
/**
|
||||
* Convert an angle in degrees into randians
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue