Пример #1
0
////////////////////////////////////////////////////////////////////////////////
// Factories
Affine Affine::Translation(const Vector3& translation)
{
	return Affine(Matrix3x3::Diagonal(1,1,1),
                  translation,
                  1.0f);
}
Пример #2
0
//NOTE: Inkscape's version is broken, so when including this version, you'll have to search for code with this func
Affine from_basis(Point const &x_basis, Point const &y_basis, Point const &offset) {
    return Affine(x_basis[X], x_basis[Y],
                  y_basis[X], y_basis[Y],
                  offset [X], offset [Y]);
}