Skip to main content

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

number|false path.angleAt(Point point)

Example

Example of the Path.angleAt() method

Notes

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