Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Line

<static> ReflectAngle(lineA, lineB)

Description:

Calculate the reflected angle between two lines.

This is the outgoing angle based on the angle of Line 1 and the normalAngle of Line 2.

Parameters:

name type description
lineA Phaser.Geom.Line

The first line.

lineB Phaser.Geom.Line

The second line.

Returns:
Description:

The reflected angle between each line.

Type:
  • number
Since: 3.0.0