Skip to content

gengine.math.getSquareDistance

Gauthier Billot edited this page Dec 19, 2014 · 1 revision

Function

Computes and returns the square distance between two points.

Synopsis
local distance = gengine.math.getSquareDistance(pointA, pointB)
Arguments
Name Type Description
pointA vector2 The first point
pointB vector2 The second point
Returns

The square distance (float)

Clone this wiki locally