MCPcopy 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
44real_t Vector2::angle() const {
45 return Math::atan2(y, x);
46}
47
48Vector2 Vector2::from_angle(real_t p_angle) {
49 return Vector2(Math::cos(p_angle), Math::sin(p_angle));

Callers 15

get_angle_toMethod · 0.80
_particles_processMethod · 0.80
_update_transformMethod · 0.80
_draw_debug_shapeMethod · 0.80
_notificationMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80
_executeMethod · 0.80
pre_solveMethod · 0.80
angle_to_pointMethod · 0.80
looking_atMethod · 0.80

Calls 1

atan2Function · 0.85

Tested by

no test coverage detected