forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
class_vector2
reduz edited this page Feb 23, 2014
·
18 revisions
Category: Built-In Types\
Vector used for 2D Math.
- real #angle_to( Vector2 to )
- Vector2 #cubic_interpolate( Vector2 b, Vector2 pre_a, Vector2 post_b, real t )
- real #distance_squared_to( Vector2 to )
- real #distance_to( Vector2 to )
- real #dot( Vector2 with )
- Vector2 #floor(****)
- Vector2 #floorf(****)
- real #get_aspect(****)
- real #length(****)
- real #length_squared(****)
- Vector2 #linear_interpolate( Vector2 b, real t )
- Vector2 #normalized(****)
- Vector2 #rotated( real phi )
- Vector2 #snapped( Vector2 by )
- Vector2 #tangent(****)
- void #Vector2( real x, real y )
== distance_to ==
- real #distance_to( Vector2 to ) \ Returns the distance to vector "b". == dot ==
- real #dot( Vector2 with ) \ Returns the dot product with vector "b". == floor ==
- Vector2 #floor(****) \ Remove the fractional part of x and y. == length ==
- real #length(****) \ Returns the length of the vector. == linear_interpolate ==
- Vector2 #linear_interpolate( Vector2 b, real t ) \ Returns the result of the linear interpolation between this vector and "b", by amount "i". == normalized ==
- Vector2 #normalized(****) \ Returns a normalized vector to unit length.