Path.intersectsX()

The Path.intersectsX() method returns the Point object(s) where the path intersects with a given X-value.

WARNING

This method can sometimes fail to find intersections in some curves due to a limitation in an underlying Bézier library. Please see Bug #3367 for more information.

Signature

Javascript
array|false path.intersectsX(float x)

Example