Changes the magnitude (length) of a two-dimensional vector without changing its direction.
name | type | description |
---|---|---|
point | Phaser.Geom.Point |
The Point to treat as the end point of the vector. |
magnitude | number |
The new magnitude of the vector. |
The modified Point.