Circle#distance()

distance(dest, round) → {number}

Returns the distance from the center of the Circle object to the given object
(can be Circle, Point or anything with x/y properties)

Parameters
Name Type Argument Default Description
dest object

The target object. Must have visible x and y properties that represent the center of the object.

round boolean <optional>
false

Round the distance to the nearest integer.

Returns
number -

The distance between this Point object and the destination Point object.

Source code: geom/Circle.js (Line 156)
doc_phaser
2017-02-14 10:41:24
Comments
Leave a Comment

Please login to continue.