Phaser API Documentation

  Version: 
<static> PointToLineSegment(point, line)

Description:

Checks if a Point is located on the given line segment.

Parameters:

name type description
point Phaser.Geom.Point

The Point to check for intersection.

line Phaser.Geom.Line

The line segment to check for intersection.

Returns:
Description:

true if the Point is on the given line segment, otherwise false.

Type:
  • boolean
Examples:
Since: 3.0.0