Phaser API Documentation

  Version: 

Member of: Phaser.Math.Vector2

normalize()

Description:

Normalize this Vector.

Makes the vector a unit length vector (magnitude of 1) in the same direction.

Returns:
Description:

This Vector2.

Since: 3.0.0
Source: src/math/Vector2.js (Line 445)