Math addon

From SolarStrike wiki
Revision as of 22:21, 19 November 2012 by Elverion (talk | contribs) (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,...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

string.alternate

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

Returns the distance between 2 points.

Example

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