g.js
— graphical objects for JavaScript
Home
Get Started
Reference
About
Get started
Installation
Quick Start
Guides
Vector Graphics
Imaging
Geometry
Color
Lists
Math
Data
String
Animation
angle
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.
Related Guides
Math
Geometry