Skip to main content

utils.beamIntersectsX()

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

Signature

Point | false utils.beamIntersectsX(Point A, Point B, float X)

Example

A Utils.beamIntersectsX() example