class_vector2 - vkbsb/godot GitHub Wiki

Vector2

####Category: Built-In Types

Brief Description

Vector used for 2D Math.

Member Functions

Member Variables

Member Function Description

distance_to

Returns the distance to vector "b".

dot

Returns the dot product with vector "b".

floor

Remove the fractional part of x and y.

length

Returns the length of the vector.

linear_interpolate

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

normalized

Returns a normalized vector to unit length.