void VImageState::CreateTransformation(hkvMat3 &dest, const hkvVec2 &vOfs, float fRotation, float fScaling) { dest.setIdentity(); float sw = fScaling * hkvMath::sinDeg (fRotation); float cw = fScaling * hkvMath::cosDeg (fRotation); // upper 2x2 rotation part dest.m_Column[0][0] = cw; dest.m_Column[1][0] = -sw; dest.m_Column[0][1] = sw; dest.m_Column[1][1] = cw; // translation column dest.m_Column[2][0] = vOfs.x; dest.m_Column[2][1] = vOfs.y; }