Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Redot-Engine/redot-engine
/ angle
Method
angle
core/math/vector2.cpp:44–46 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
42
#include
"core/string/ustring.h"
43
44
real_t Vector2::angle() const {
45
return Math::atan2(y, x);
46
}
47
48
Vector2 Vector2::from_angle(real_t p_angle) {
49
return Vector2(Math::cos(p_angle), Math::sin(p_angle));
Callers
15
get_angle_to
Method · 0.80
_particles_process
Method · 0.80
_update_transform
Method · 0.80
calculate_length_and_rotation
Method · 0.80
_draw_debug_shape
Method · 0.80
_notification
Method · 0.80
draw
Method · 0.80
draw
Method · 0.80
_execute
Method · 0.80
pre_solve
Method · 0.80
angle_to_point
Method · 0.80
looking_at
Method · 0.80
Calls
1
atan2
Function · 0.85
Tested by
no test coverage detected