Difference between revisions of "Transform:setTransformation"
m |
m |
||
Line 22: | Line 22: | ||
== See Also == | == See Also == | ||
* [[parent::Transform]] | * [[parent::Transform]] | ||
+ | * [[love.math.newTransform]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
{{#set:Description=Resets the Transform to the specified transformation parameters.}} | {{#set:Description=Resets the Transform to the specified transformation parameters.}} | ||
== Other Languages == | == Other Languages == | ||
{{i18n|Transform:setTransformation}} | {{i18n|Transform:setTransformation}} |
Revision as of 22:09, 26 January 2018
Available since LÖVE 0.11.0 |
This function is not supported in earlier versions. |
Resets the Transform to the specified transformation parameters.
Function
Synopsis
transform = Transform:setTransformation( x, y, angle, sx, sy, ox, oy, kx, ky )
Arguments
number x
- The position of the Transform on the x-axis.
number y
- The position of the Transform on the y-axis.
number angle (0)
- The orientation of the Transform in radians.
number sx (1)
- Scale factor on the x-axis.
number sy (sx)
- Scale factor on the y-axis.
number ox (0)
- Origin offset on the x-axis.
number oy (0)
- Origin offset on the y-axis.
number kx (0)
- Shearing / skew factor on the x-axis.
number ky (0)
- Shearing / skew factor on the y-axis.
Returns
Transform transform
- The Transform object the method was called on. Allows easily chaining Transform methods.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info