Skip to main content

utils.beamIntersectsY()

The utils.beamIntersectsY() function finds the intersection between an endless line and a given Y-value. Returns a Point object for the intersection, or false there is no intersection.

Signature​

Point | false utils.beamIntersectsY(Point A, Point B, float Y)

Example​

A Utils.beamIntersectsY() example