Home
News
Learn
Download
Examples
Community
Login
Phaser API Documentation
Version:
Namespaces
Classes
Events
Game Objects
Physics
Scenes
Changelog
Member of:
Phaser.Geom.Line
<static> Length(line)
Description:
Calculate the length of the given line.
Parameters:
name
type
description
line
Phaser.Geom.Line
The line to calculate the length of.
Returns:
Description:
The length of the line.
Type:
number
Since:
3.0.0
Source:
src/geom/line/Length.js
(Line
7
)
Possible examples