Difference between revisions of "Math addon"

From SolarStrike wiki
Jump to: navigation, search
(Created page with "== string.alternate == '''number math.distance(x1, y1, x2, y2)''' Returns the distance between 2 points. '''Example''' <source lang="lua"> local dist = math.distance(0, 0,...")
 
(No difference)

Latest revision as of 22:21, 19 November 2012

string.alternate

number math.distance(x1, y1, x2, y2)

Returns the distance between 2 points.

Example

  local dist = math.distance(0, 0, 10, 10);