Function webrender::util::scale_factors

source ·
pub fn scale_factors<Src, Dst>(mat: &Transform3D<f32, Src, Dst>) -> (f32, f32)
Expand description

Computes the scale factors of this matrix; that is, the amounts each basis vector is scaled by.

This code comes from gecko gfx/2d/Matrix.h with the following modifications:

  • Removed xMajor parameter.
  • All arithmetics is done with double precision.