g.js — graphical objects for JavaScript

angleangle

Calculate the angle between two points.

g.angle({x: 0, y: 0}, {x: 0, y: 100});

Parameters

  • point1: The first point.
  • point2: The second point.