MCPcopy Create free account
hub / github.com/comaps/comaps / Scale

Function Scale

libs/geometry/transformations.hpp:44–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42
43template <typename T, typename U>
44Matrix<T, 3, 3> const Scale(Matrix<T, 3, 3> const & m, U const & kx, U const & ky)
45{
46 Matrix<T, 3, 3> m1 = Identity<T, 3>();
47 m1(0, 0) = kx;
48 m1(1, 1) = ky;
49 return m * m1;
50}
51
52template <typename T, typename U>
53Matrix<T, 3, 3> const Scale(Matrix<T, 3, 3> const & m, m2::Point<U> const & pt)

Callers 7

CalcTransformMethod · 0.85
UNIT_TESTFunction · 0.85
UNIT_TESTFunction · 0.85
ScaleMethod · 0.85
TouchMoveMethod · 0.85
BeginScaleMethod · 0.85

Calls

no outgoing calls

Tested by 2

UNIT_TESTFunction · 0.68
UNIT_TESTFunction · 0.68