# Manipulating 2D Linear Transformations

You can manipulate a 2D linear transformation using three methods:

- ScalingX/Y-RotationX/Y
- Scaling-Aspect-Rotation-Skew
- Matrix Elements

All three methods are based on the general 2D linear transformation shown previously, and you obtain the same mathematical mapping of points from each method. The only difference is how you specify the elements of the (2x2) matrix of the transformation. Use the method that best suits your vision application or your existing algorithms.

If your application involves only uniform rotation and scaling, you may find it easier to set a single Rotation or Scaling> value using the Scaling-Aspect-Rotation-Skew method.

On the other hand, if you need to perform nonuniform rotation and scaling, you should pick the method that matches your data. For example, if you know that you want to scale the x-axis by 10 and the y-axis by 11, then you should set ScalingX and ScalingY using the ScalingX/Y-RotationX/Y method. If, instead, you know that your image camera has an aspect ratio of 10-to-11 and that you zoomed in by a factor of two, you should use the Scaling-Aspect-Rotation-Skew method and set the Scaling and Aspect values.