Products
Phaser
Phaser Editor
Phaser Box2D
Discord Activities
News
Pricing
Games
Resources
What is Phaser?
Examples
Getting Started
Making your first Game
Documentation
Tutorials
Phaser YouTube
Log in
Sign up
Build games as easily as you play them — join the Phaser Beam waitlist for Early Access.
Examples
❯
v3.85.0
❯
math
❯
vec2
Version:
v3.85.0 (Latest)
v3.55.0
v3.24.0
Folders with this symbol contain examples that require a Developer license
Back
Add
Divide
Dot
Multiply
Normalize
Perp
Rperp
Set Magnitude
Subtract