def point.unit

gralha-svg-render@0.1.0.1 · svg.bend:1180

import gralha-svg-render@0.1.0.1/svg.bend as Svg
import Base
import gralha-text-scan@0.1.0.1/scan.bend as U

1180def point.unit(+p: Point) -> Point:
1181  point.scale(p, (1.0 / U.max(0.0000001, F32.sqrt(point.dot(p, p))) : F32))

Uses (7)

Used by (2)