Skip to content
Rémi Verschelde edited this page Feb 16, 2016 · 18 revisions

Important: This wiki is soon going to be taken down, as the official documentation of the Godot project is now on http://docs.godotengine.org.

Vector2

####Category: Built-In Types

Brief Description

Vector used for 2D Math.

Member Functions

Member Variables

Member Function Description

Returns the distance to vector "b".

Returns the dot product with vector "b".

Remove the fractional part of x and y.

Returns the length of the vector.

Returns the result of the linear interpolation between this vector and "b", by amount "i".

Returns a normalized vector to unit length.

Clone this wiki locally