Phaser API Documentation

  Version: 

Member of: Phaser.Curves.Line

getResolution([divisions])

Description:

Gets the resolution of the line.

Parameters:

name type arguments Default description
divisions number <optional> 1

The number of divisions to consider.

Returns:
Description:

The resolution. Equal to the number of divisions.

Type:
  • number
Since: 3.0.0
Source: src/curves/LineCurve.js (Line 114)