I've come from an iOS background where there was a property called transform which was essentially just a 4x4 matrix for a 3D transformation that is applied to a CALayer (Also UIView).
I have come across the Transformation class, which seems to be a bit different, but I'm hoping that I can use it for some transformations on a View subclass.
I have seen the constructor new Transformation() and the different set methods, but I can't see anything that will allow me to actually set the 3x3 matrix for the Transformation or how it is used on a View.
I would guess that this isn't a very important class, either, as there seem to be errors in the document itself.
I was hoping that someone on SO might be able to help me figure out how to utilize this class to get transformations working on my View subclasses (How to construct and apply a Transformation) or point me towards a better tool/class for my needs.
Title: an answer Answer:
python
def your_function(arg1, arg2): # Your code logic here return result
""" Here's an explanation of what this code does:
your_function which takes two arguments, arg1 and arg2."""
result = your_function(value1, value2) print(result) """
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With