feat: Precise highlights for bindings (#9472)

This commit is contained in:
Márk Tolmács
2025-05-05 09:51:20 +02:00
committed by GitHub
parent 6e655cdb24
commit e19fd1332a
5 changed files with 484 additions and 125 deletions

View File

@@ -143,3 +143,8 @@ export const vectorNormalize = (v: Vector): Vector => {
return vector(v[0] / m, v[1] / m);
};
/**
* Calculate the right-hand normal of the vector.
*/
export const vectorNormal = (v: Vector): Vector => vector(v[1], -v[0]);