You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Context struct has a matrix property and various methods to manipulate that matrix. But although you can create a new Matrix, there is no way to apply a matrix to the context in one shot. Other packages I've used in the past have had one method such as SetTransform which replaces the current transform matrix with a new matrix, and ApplyTransform which applies a full matrix as an additional transform to the current matrix. As well as a method to get the current transform.
The Context struct has a matrix property and various methods to manipulate that matrix. But although you can create a new Matrix, there is no way to apply a matrix to the context in one shot. Other packages I've used in the past have had one method such as
SetTransform
which replaces the current transform matrix with a new matrix, andApplyTransform
which applies a full matrix as an additional transform to the current matrix. As well as a method to get the current transform.I believe this would be as simple as:
Though I might have gotten the order reversed in the second one.
The Get and Set methods would be the most useful and if you had those, you could roll your own Apply method.
The text was updated successfully, but these errors were encountered: