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

Method snapped

core/math/vector4.cpp:213–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213Vector4 Vector4::snapped(const Vector4 &p_step) const {
214 Vector4 v = *this;
215 v.snap(p_step);
216 return v;
217}
218
219Vector4 Vector4::snappedf(real_t p_step) const {
220 Vector4 v = *this;

Callers 11

_gui_input_moveMethod · 0.45
_snap_pointMethod · 0.45
_blend_space_drawMethod · 0.45
test_vector4.hFile · 0.45
test_vector2i.hFile · 0.45
test_vector3.hFile · 0.45
test_vector4i.hFile · 0.45
test_vector3i.hFile · 0.45
test_vector2.hFile · 0.45

Calls 1

snapMethod · 0.45

Tested by

no test coverage detected