graphinglib.Polygon.linear_transformation# Polygon.linear_transformation(matrix: ndarray) → Self[source]# Applies a transformation matrix to the polygon. Parameters: transformnumpy.ndarrayThe transformation matrix to apply. The matrix should be a 2x2 matrix for 2D transformations.