MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / angle_to_point

Method angle_to_point

core/math/vector2.cpp:92–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92real_t Vector2::angle_to_point(const Vector2 &p_vector2) const {
93 return (p_vector2 - *this).angle();
94}
95
96real_t Vector2::dot(const Vector2 &p_other) const {
97 return x * p_other.x + y * p_other.y;

Callers 7

_execute_ccdik_jointMethod · 0.80
_wheel_inputMethod · 0.80
update_circle_cursorMethod · 0.80
_circle_inputMethod · 0.80
GodotPinJoint2DMethod · 0.80
test_vector2.hFile · 0.80

Calls 1

angleMethod · 0.80

Tested by

no test coverage detected