mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-12-07 04:58:18 +01:00
feat: Basic outlining polygon
This commit is contained in:
@@ -158,3 +158,8 @@ export const vectorNormalize = (v: Vector): Vector => {
|
||||
* Calculate the right-hand normal of the vector.
|
||||
*/
|
||||
export const vectorNormal = (v: Vector): Vector => vector(v[1], -v[0]);
|
||||
|
||||
/**
|
||||
* Calculate the left-hand normal of the vector.
|
||||
*/
|
||||
export const vectorAntiNormal = (v: Vector): Vector => vector(-v[1], v[0]);
|
||||
|
||||
Reference in New Issue
Block a user