3 Replies Latest reply on May 22, 2017 10:36 AM by ClayUUID

    How to get distance between objects in XY plane.

    KislayCG Level 1



      Is there a quick way to find distance between two or more objects in XY plane, something like finding perimeter of a polygon.
      Something like 'math.distance' in math.js.


      I know there is this method
      var dist = Math.sqrt( Math.pow((x1-x2), 2) + Math.pow((y1-y2), 2) );

      I just want to know if is there any quick method for this