Difference between revisions of "Source:getDistance"

(Parent corrected)
m
Line 10: Line 10:
 
None.
 
None.
 
=== Returns ===
 
=== Returns ===
{{param|string|ref|The reference distance.}}
+
{{param|number|ref|The reference distance.}}
{{param|string|max|The maximum distance.}}
+
{{param|number|max|The maximum distance.}}
 
== See Also ==
 
== See Also ==
 
* [[parent::Source]]
 
* [[parent::Source]]

Revision as of 23:24, 19 October 2012

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

Returns the reference and maximum distance of the source.

Function

Synopsis

ref, max = Source:getDistance( )

Arguments

None.

Returns

number ref
The reference distance.
number max
The maximum distance.

See Also


Other Languages