.. GetDistance

.. default - domain::js

.. include:: /includes/standard.rst

====================
GetDistance (Kernel)
====================

.. function:: GetDistance(x1 y1 x2 y2 [picAngle])

	
	Calculates the distance between the two points and returns it.
	
	:param number x1: The x coordinate of the first point.
	:param number y1: The y coordinate of the first point.
	:param number x2: The x coordinate of the second point.
	:param number y2: The y coordinate of the second point.
	:param number picAngle: Optional pic angle.
	:returns: The distance between the two points.
	
	Example::
	
		(= aDistance (GetDistance 10 20 100 80))


