def cover.axes

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

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

4331# Device pixels per image pixel along each image axis; m maps image pixels to device.
4332def cover.axes(+m: Matrix, +frame: Raster) -> Point:
4333  Matrix{a, b, c, d, e, f} = m
4334  +st = raster.scale(frame)
4335  Point{(F32.sqrt((a * a + b * b : F32)) / st : F32), (F32.sqrt((c * c + d * d : F32)) / st : F32)}

Uses (9)

Used by (1)