Path.angleAt()

The Path.angleAt() method returns the (tangent) angle of a path at a specific point.

If the given point is a sharp corner, this method prefers returning the angle directly before the corner.

If the given point does not lie (approximately) on the path, this method returns false.

Signature

Javascript
number|false path.angleAt(Point point)

Example

Notes

Keep in mind that calculations with Bézier curves are often approximations.