Vector2.new||doc136387

September 20, 2022

Format

Vector2.new(x, y)

Describe

Create a 2D vector type data instance.

parameter

Variable name Type Describe
x float X-axis component
y float Y-axis component

Return value

Type Describe
Vector2 2D vector type data instance