@mocanvas/editor · function

areAnglesCompatible

declare function areAnglesCompatible(a: number, b: number): boolean

Whether two angles describe the same axis, i.e. differ by a whole number of quarter turns. This is what decides whether two rotated shapes can share a bounding box without one of them being resized off its own axes.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.