跳到主要内容

Path.intersectsX()

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

警告

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

Signature

array path.intersectsX(float x)

Example

Example of the Path.intersectsX() method