跳到主要内容

utils.curvesIntersect()

The utils.curvesIntersect() function finds the inter分区 between two curves described by 4 points each.

Signature

array | Point | false utils.curvesIntersect(
Point startA,
Point Cp1A,
Point Cp2A,
Point endA,
Point startB,
Point Cp1B,
Point Cp2B,
Point endB)

This returns false if no inter分区 are found, a Point object if a single intersection is found, and an array of Point objects if mul提示le inter分区 are found.

Example

A Utils.curvesIntersect() example