mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Further math refactor and simplifications
This commit is contained in:
parent
41885b4bb3
commit
0e2f8c958e
18 changed files with 262 additions and 175 deletions
|
@ -1,3 +1,4 @@
|
|||
import type { LineSegment } from "../math";
|
||||
import {
|
||||
vectorCross,
|
||||
vectorFromPoint,
|
||||
|
@ -6,8 +7,6 @@ import {
|
|||
} from "../math";
|
||||
import type { Bounds } from "../excalidraw/element/bounds";
|
||||
|
||||
export type LineSegment<P extends LocalPoint | GlobalPoint> = [P, P];
|
||||
|
||||
export function getBBox<P extends LocalPoint | GlobalPoint>(
|
||||
line: LineSegment<P>,
|
||||
): Bounds {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue