Scripting/Squirrel/Functions/DistanceFromPoint: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing
(Created page with "This function will get the distance from a point to another. == Syntax == <pre>DistanceFromPoint( x1, y1, x2, y2 )</pre> == Arguments == * ''float'' '''x1''' - The X coord...")
(No difference)

Revision as of 14:17, 3 February 2014

This function will get the distance from a point to another.

Syntax

DistanceFromPoint( x1, y1, x2, y2 )

Arguments

  • float x1 - The X coordinate
  • float y1 - The Y coordinate
  • float x2 - The X coordinate
  • float y2 - The Y coordinate

Return value

  • float distance - The distance between the two points

Example

This page needs an example. We will try our best to complete the wiki as soon as possible.

Notes

Related Functions