Difference between revisions of "Transform:setTransformation"

(Created page)
 
m (0.11.0 -> 11.0)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{newin|[[0.11.0]]|110|type=function}}
+
{{newin|[[11.0]]|110|type=function}}
 
Resets the Transform to the specified transformation parameters.
 
Resets the Transform to the specified transformation parameters.
  
Line 18: Line 18:
 
{{param|number|ky (0)|Shearing / skew factor on the y-axis.}}
 
{{param|number|ky (0)|Shearing / skew factor on the y-axis.}}
 
=== Returns ===
 
=== Returns ===
{{param|Transform|transform|The Transform the method was called on. Allows easily chaining Transform methods.}}
+
{{param|Transform|transform|The Transform object the method was called on. Allows easily chaining Transform methods.}}
  
 
== 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}}

Latest revision as of 18:30, 7 May 2019

Available since LÖVE 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