Difference between revisions of "Transform:shear"

(Created page)
 
m (0.11.0 -> 11.0)
 
Line 1: Line 1:
{{newin|[[0.11.0]]|110|type=function}}
+
{{newin|[[11.0]]|110|type=function}}
 
Applies a [https://en.wikipedia.org/wiki/Shear_mapping shear factor] (skew) to the Transform's coordinate system. This method does not reset any previously applied transformations.
 
Applies a [https://en.wikipedia.org/wiki/Shear_mapping shear factor] (skew) to the Transform's coordinate system. This method does not reset any previously applied transformations.
  

Latest revision as of 18:31, 7 May 2019

Available since LÖVE 11.0
This function is not supported in earlier versions.

Applies a shear factor (skew) to the Transform's coordinate system. This method does not reset any previously applied transformations.

Function

Synopsis

transform = Transform:shear( kx, ky )

Arguments

number kx
The shear factor along the x-axis.
number ky
The shear factor along the y-axis.

Returns

Transform transform
The Transform object the method was called on. Allows easily chaining Transform methods.

See Also

Other Languages