.. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/docs/gdscript/doc/classes/Vector2.xml. .. _class_Vector2: Vector2 ======= .. container:: contribute There is currently no description for this class. Please help us by :ref:`contributing one `! .. rst-class:: classref-reftable-group Properties ---------- .. table:: :widths: auto +---------------------------+------------------------------------+---------+ | :ref:`float` | :ref:`x` | ``0.0`` | +---------------------------+------------------------------------+---------+ | :ref:`float` | :ref:`y` | ``0.0`` | +---------------------------+------------------------------------+---------+ .. rst-class:: classref-reftable-group Constructors ------------ .. table:: :widths: auto +-------------------------------+------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`Vector2` **(** **)** | +-------------------------------+------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`Vector2` **(** :ref:`Vector2` from **)** | +-------------------------------+------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`Vector2` **(** :ref:`Vector2i` from **)** | +-------------------------------+------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`Vector2` **(** :ref:`float` x, :ref:`float` y **)** | +-------------------------------+------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`abs` **(** **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`angle` **(** **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`angle_to` **(** :ref:`Vector2` to **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`angle_to_point` **(** :ref:`Vector2` to **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`aspect` **(** **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`bezier_derivative` **(** :ref:`Vector2` control_1, :ref:`Vector2` control_2, :ref:`Vector2` end, :ref:`float` t **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`bezier_interpolate` **(** :ref:`Vector2` control_1, :ref:`Vector2` control_2, :ref:`Vector2` end, :ref:`float` t **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`bounce` **(** :ref:`Vector2` n **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`ceil` **(** **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`clamp` **(** :ref:`Vector2` min, :ref:`Vector2` max **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`clampf` **(** :ref:`float` min, :ref:`float` max **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`cross` **(** :ref:`Vector2` with **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`cubic_interpolate` **(** :ref:`Vector2` b, :ref:`Vector2` pre_a, :ref:`Vector2` post_b, :ref:`float` weight **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`cubic_interpolate_in_time` **(** :ref:`Vector2` b, :ref:`Vector2` pre_a, :ref:`Vector2` post_b, :ref:`float` weight, :ref:`float` b_t, :ref:`float` pre_a_t, :ref:`float` post_b_t **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`direction_to` **(** :ref:`Vector2` to **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`distance_squared_to` **(** :ref:`Vector2` to **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`distance_to` **(** :ref:`Vector2` to **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`dot` **(** :ref:`Vector2` with **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`floor` **(** **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`from_angle` **(** :ref:`float` angle **)** |static| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_equal_approx` **(** :ref:`Vector2` to **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_finite` **(** **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_normalized` **(** **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_zero_approx` **(** **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`length` **(** **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`length_squared` **(** **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`lerp` **(** :ref:`Vector2` to, :ref:`float` weight **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`limit_length` **(** :ref:`float` length=1.0 **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`max` **(** :ref:`Vector2` with **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`max_axis_index` **(** **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`maxf` **(** :ref:`float` with **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`min` **(** :ref:`Vector2` with **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`min_axis_index` **(** **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`minf` **(** :ref:`float` with **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`move_toward` **(** :ref:`Vector2` to, :ref:`float` delta **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`normalized` **(** **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`orthogonal` **(** **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`posmod` **(** :ref:`float` mod **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`posmodv` **(** :ref:`Vector2` modv **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`project` **(** :ref:`Vector2` b **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`reflect` **(** :ref:`Vector2` line **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`rotated` **(** :ref:`float` angle **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`round` **(** **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`sign` **(** **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`slerp` **(** :ref:`Vector2` to, :ref:`float` weight **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`slide` **(** :ref:`Vector2` n **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`snapped` **(** :ref:`Vector2` step **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`snappedf` **(** :ref:`float` step **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-reftable-group Operators --------- .. table:: :widths: auto +-------------------------------+-------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`operator !=` **(** :ref:`Vector2` right **)** | +-------------------------------+-------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`operator *` **(** :ref:`Transform2D` right **)** | +-------------------------------+-------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`operator *` **(** :ref:`Vector2` right **)** | +-------------------------------+-------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`operator *` **(** :ref:`float` right **)** | +-------------------------------+-------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`operator *` **(** :ref:`int` right **)** | +-------------------------------+-------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`operator +` **(** :ref:`Vector2` right **)** | +-------------------------------+-------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`operator -` **(** :ref:`Vector2` right **)** | +-------------------------------+-------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`operator /` **(** :ref:`Vector2` right **)** | +-------------------------------+-------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`operator /` **(** :ref:`float` right **)** | +-------------------------------+-------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`operator /` **(** :ref:`int` right **)** | +-------------------------------+-------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`operator \<` **(** :ref:`Vector2` right **)** | +-------------------------------+-------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`operator \<=` **(** :ref:`Vector2` right **)** | +-------------------------------+-------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`operator ==` **(** :ref:`Vector2` right **)** | +-------------------------------+-------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`operator >` **(** :ref:`Vector2` right **)** | +-------------------------------+-------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`operator >=` **(** :ref:`Vector2` right **)** | +-------------------------------+-------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`operator []` **(** :ref:`int` index **)** | +-------------------------------+-------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`operator unary+` **(** **)** | +-------------------------------+-------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`operator unary-` **(** **)** | +-------------------------------+-------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Constants --------- .. _class_Vector2_constant_AXIS_X: .. rst-class:: classref-constant **AXIS_X** = ``0`` .. container:: contribute There is currently no description for this constant. Please help us by :ref:`contributing one `! .. _class_Vector2_constant_AXIS_Y: .. rst-class:: classref-constant **AXIS_Y** = ``1`` .. container:: contribute There is currently no description for this constant. Please help us by :ref:`contributing one `! .. _class_Vector2_constant_ZERO: .. rst-class:: classref-constant **ZERO** = ``Vector2(0, 0)`` .. container:: contribute There is currently no description for this constant. Please help us by :ref:`contributing one `! .. _class_Vector2_constant_ONE: .. rst-class:: classref-constant **ONE** = ``Vector2(1, 1)`` .. container:: contribute There is currently no description for this constant. Please help us by :ref:`contributing one `! .. _class_Vector2_constant_INF: .. rst-class:: classref-constant **INF** = ``Vector2(inf, inf)`` .. container:: contribute There is currently no description for this constant. Please help us by :ref:`contributing one `! .. _class_Vector2_constant_LEFT: .. rst-class:: classref-constant **LEFT** = ``Vector2(-1, 0)`` .. container:: contribute There is currently no description for this constant. Please help us by :ref:`contributing one `! .. _class_Vector2_constant_RIGHT: .. rst-class:: classref-constant **RIGHT** = ``Vector2(1, 0)`` .. container:: contribute There is currently no description for this constant. Please help us by :ref:`contributing one `! .. _class_Vector2_constant_UP: .. rst-class:: classref-constant **UP** = ``Vector2(0, -1)`` .. container:: contribute There is currently no description for this constant. Please help us by :ref:`contributing one `! .. _class_Vector2_constant_DOWN: .. rst-class:: classref-constant **DOWN** = ``Vector2(0, 1)`` .. container:: contribute There is currently no description for this constant. Please help us by :ref:`contributing one `! .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Property Descriptions --------------------- .. _class_Vector2_property_x: .. rst-class:: classref-property :ref:`float` **x** = ``0.0`` .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_property_y: .. rst-class:: classref-property :ref:`float` **y** = ``0.0`` .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Constructor Descriptions ------------------------ .. _class_Vector2_constructor_Vector2: .. rst-class:: classref-constructor :ref:`Vector2` **Vector2** **(** **)** .. container:: contribute There is currently no description for this constructor. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. rst-class:: classref-constructor :ref:`Vector2` **Vector2** **(** :ref:`Vector2` from **)** .. container:: contribute There is currently no description for this constructor. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. rst-class:: classref-constructor :ref:`Vector2` **Vector2** **(** :ref:`Vector2i` from **)** .. container:: contribute There is currently no description for this constructor. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. rst-class:: classref-constructor :ref:`Vector2` **Vector2** **(** :ref:`float` x, :ref:`float` y **)** .. container:: contribute There is currently no description for this constructor. Please help us by :ref:`contributing one `! .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Method Descriptions ------------------- .. _class_Vector2_method_abs: .. rst-class:: classref-method :ref:`Vector2` **abs** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_angle: .. rst-class:: classref-method :ref:`float` **angle** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_angle_to: .. rst-class:: classref-method :ref:`float` **angle_to** **(** :ref:`Vector2` to **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_angle_to_point: .. rst-class:: classref-method :ref:`float` **angle_to_point** **(** :ref:`Vector2` to **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_aspect: .. rst-class:: classref-method :ref:`float` **aspect** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_bezier_derivative: .. rst-class:: classref-method :ref:`Vector2` **bezier_derivative** **(** :ref:`Vector2` control_1, :ref:`Vector2` control_2, :ref:`Vector2` end, :ref:`float` t **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_bezier_interpolate: .. rst-class:: classref-method :ref:`Vector2` **bezier_interpolate** **(** :ref:`Vector2` control_1, :ref:`Vector2` control_2, :ref:`Vector2` end, :ref:`float` t **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_bounce: .. rst-class:: classref-method :ref:`Vector2` **bounce** **(** :ref:`Vector2` n **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_ceil: .. rst-class:: classref-method :ref:`Vector2` **ceil** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_clamp: .. rst-class:: classref-method :ref:`Vector2` **clamp** **(** :ref:`Vector2` min, :ref:`Vector2` max **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_clampf: .. rst-class:: classref-method :ref:`Vector2` **clampf** **(** :ref:`float` min, :ref:`float` max **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_cross: .. rst-class:: classref-method :ref:`float` **cross** **(** :ref:`Vector2` with **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_cubic_interpolate: .. rst-class:: classref-method :ref:`Vector2` **cubic_interpolate** **(** :ref:`Vector2` b, :ref:`Vector2` pre_a, :ref:`Vector2` post_b, :ref:`float` weight **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_cubic_interpolate_in_time: .. rst-class:: classref-method :ref:`Vector2` **cubic_interpolate_in_time** **(** :ref:`Vector2` b, :ref:`Vector2` pre_a, :ref:`Vector2` post_b, :ref:`float` weight, :ref:`float` b_t, :ref:`float` pre_a_t, :ref:`float` post_b_t **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_direction_to: .. rst-class:: classref-method :ref:`Vector2` **direction_to** **(** :ref:`Vector2` to **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_distance_squared_to: .. rst-class:: classref-method :ref:`float` **distance_squared_to** **(** :ref:`Vector2` to **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_distance_to: .. rst-class:: classref-method :ref:`float` **distance_to** **(** :ref:`Vector2` to **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_dot: .. rst-class:: classref-method :ref:`float` **dot** **(** :ref:`Vector2` with **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_floor: .. rst-class:: classref-method :ref:`Vector2` **floor** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_from_angle: .. rst-class:: classref-method :ref:`Vector2` **from_angle** **(** :ref:`float` angle **)** |static| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_is_equal_approx: .. rst-class:: classref-method :ref:`bool` **is_equal_approx** **(** :ref:`Vector2` to **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_is_finite: .. rst-class:: classref-method :ref:`bool` **is_finite** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_is_normalized: .. rst-class:: classref-method :ref:`bool` **is_normalized** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_is_zero_approx: .. rst-class:: classref-method :ref:`bool` **is_zero_approx** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_length: .. rst-class:: classref-method :ref:`float` **length** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_length_squared: .. rst-class:: classref-method :ref:`float` **length_squared** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_lerp: .. rst-class:: classref-method :ref:`Vector2` **lerp** **(** :ref:`Vector2` to, :ref:`float` weight **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_limit_length: .. rst-class:: classref-method :ref:`Vector2` **limit_length** **(** :ref:`float` length=1.0 **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_max: .. rst-class:: classref-method :ref:`Vector2` **max** **(** :ref:`Vector2` with **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_max_axis_index: .. rst-class:: classref-method :ref:`int` **max_axis_index** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_maxf: .. rst-class:: classref-method :ref:`Vector2` **maxf** **(** :ref:`float` with **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_min: .. rst-class:: classref-method :ref:`Vector2` **min** **(** :ref:`Vector2` with **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_min_axis_index: .. rst-class:: classref-method :ref:`int` **min_axis_index** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_minf: .. rst-class:: classref-method :ref:`Vector2` **minf** **(** :ref:`float` with **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_move_toward: .. rst-class:: classref-method :ref:`Vector2` **move_toward** **(** :ref:`Vector2` to, :ref:`float` delta **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_normalized: .. rst-class:: classref-method :ref:`Vector2` **normalized** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_orthogonal: .. rst-class:: classref-method :ref:`Vector2` **orthogonal** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_posmod: .. rst-class:: classref-method :ref:`Vector2` **posmod** **(** :ref:`float` mod **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_posmodv: .. rst-class:: classref-method :ref:`Vector2` **posmodv** **(** :ref:`Vector2` modv **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_project: .. rst-class:: classref-method :ref:`Vector2` **project** **(** :ref:`Vector2` b **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_reflect: .. rst-class:: classref-method :ref:`Vector2` **reflect** **(** :ref:`Vector2` line **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_rotated: .. rst-class:: classref-method :ref:`Vector2` **rotated** **(** :ref:`float` angle **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_round: .. rst-class:: classref-method :ref:`Vector2` **round** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_sign: .. rst-class:: classref-method :ref:`Vector2` **sign** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_slerp: .. rst-class:: classref-method :ref:`Vector2` **slerp** **(** :ref:`Vector2` to, :ref:`float` weight **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_slide: .. rst-class:: classref-method :ref:`Vector2` **slide** **(** :ref:`Vector2` n **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_snapped: .. rst-class:: classref-method :ref:`Vector2` **snapped** **(** :ref:`Vector2` step **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_method_snappedf: .. rst-class:: classref-method :ref:`Vector2` **snappedf** **(** :ref:`float` step **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Operator Descriptions --------------------- .. _class_Vector2_operator_neq_Vector2: .. rst-class:: classref-operator :ref:`bool` **operator !=** **(** :ref:`Vector2` right **)** .. container:: contribute There is currently no description for this operator. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_operator_mul_Transform2D: .. rst-class:: classref-operator :ref:`Vector2` **operator *** **(** :ref:`Transform2D` right **)** .. container:: contribute There is currently no description for this operator. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_operator_mul_Vector2: .. rst-class:: classref-operator :ref:`Vector2` **operator *** **(** :ref:`Vector2` right **)** .. container:: contribute There is currently no description for this operator. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_operator_mul_float: .. rst-class:: classref-operator :ref:`Vector2` **operator *** **(** :ref:`float` right **)** .. container:: contribute There is currently no description for this operator. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_operator_mul_int: .. rst-class:: classref-operator :ref:`Vector2` **operator *** **(** :ref:`int` right **)** .. container:: contribute There is currently no description for this operator. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_operator_sum_Vector2: .. rst-class:: classref-operator :ref:`Vector2` **operator +** **(** :ref:`Vector2` right **)** .. container:: contribute There is currently no description for this operator. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_operator_dif_Vector2: .. rst-class:: classref-operator :ref:`Vector2` **operator -** **(** :ref:`Vector2` right **)** .. container:: contribute There is currently no description for this operator. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_operator_div_Vector2: .. rst-class:: classref-operator :ref:`Vector2` **operator /** **(** :ref:`Vector2` right **)** .. container:: contribute There is currently no description for this operator. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_operator_div_float: .. rst-class:: classref-operator :ref:`Vector2` **operator /** **(** :ref:`float` right **)** .. container:: contribute There is currently no description for this operator. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_operator_div_int: .. rst-class:: classref-operator :ref:`Vector2` **operator /** **(** :ref:`int` right **)** .. container:: contribute There is currently no description for this operator. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_operator_lt_Vector2: .. rst-class:: classref-operator :ref:`bool` **operator <** **(** :ref:`Vector2` right **)** .. container:: contribute There is currently no description for this operator. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_operator_lte_Vector2: .. rst-class:: classref-operator :ref:`bool` **operator <=** **(** :ref:`Vector2` right **)** .. container:: contribute There is currently no description for this operator. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_operator_eq_Vector2: .. rst-class:: classref-operator :ref:`bool` **operator ==** **(** :ref:`Vector2` right **)** .. container:: contribute There is currently no description for this operator. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_operator_gt_Vector2: .. rst-class:: classref-operator :ref:`bool` **operator >** **(** :ref:`Vector2` right **)** .. container:: contribute There is currently no description for this operator. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_operator_gte_Vector2: .. rst-class:: classref-operator :ref:`bool` **operator >=** **(** :ref:`Vector2` right **)** .. container:: contribute There is currently no description for this operator. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_operator_idx_int: .. rst-class:: classref-operator :ref:`float` **operator []** **(** :ref:`int` index **)** .. container:: contribute There is currently no description for this operator. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_operator_unplus: .. rst-class:: classref-operator :ref:`Vector2` **operator unary+** **(** **)** .. container:: contribute There is currently no description for this operator. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_Vector2_operator_unminus: .. rst-class:: classref-operator :ref:`Vector2` **operator unary-** **(** **)** .. container:: contribute There is currently no description for this operator. Please help us by :ref:`contributing one `! .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)` .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`