g.js — graphical objects for JavaScript

lineAnglelineAngle

Create a line between a point and an angle + distance.

g.lineAngle({x: 0, y: 0}, 25, 130);

Parameters

  • point: The starting point of the line.
  • angle: The direction of the line, in degrees.
  • distance: The distance between starting and ending point.

See Also

  • line: Create a line between two points.