forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
class_vector2
Lukas Sägesser edited this page Jun 22, 2015
·
13 revisions
####Category: Built-In Types
Vector used for 2D Math.
- float angle_to ( Vector2 to )
- float angle_to_point ( Vector2 to )
- float atan2 ( )
- Vector2 cubic_interpolate ( Vector2 b, Vector2 pre_a, Vector2 post_b, float t )
- float distance_squared_to ( Vector2 to )
- float distance_to ( Vector2 to )
- float dot ( Vector2 with )
- Vector2 floor ( )
- Vector2 floorf ( )
- float get_aspect ( )
- float length ( )
- float length_squared ( )
- Vector2 linear_interpolate ( Vector2 b, float t )
- Vector2 normalized ( )
- Vector2 reflect ( Vector2 vec )
- Vector2 rotated ( float phi )
- Vector2 slide ( Vector2 vec )
- Vector2 snapped ( Vector2 by )
- Vector2 tangent ( )
- Vector2 Vector2 ( float x, float y )
Returns the distance to vector "b".
Returns the dot product with vector "b".
- Vector2 floor ( )
Remove the fractional part of x and y.
- float length ( )
Returns the length of the vector.
Returns the result of the linear interpolation between this vector and "b", by amount "i".
- Vector2 normalized ( )
Returns a normalized vector to unit length.