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

Method snappedf

core/math/vector4.cpp:219–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219Vector4 Vector4::snappedf(real_t p_step) const {
220 Vector4 v = *this;
221 v.snapf(p_step);
222 return v;
223}
224
225Vector4 Vector4::inverse() const {
226 return Vector4(1.0f / x, 1.0f / y, 1.0f / z, 1.0f / w);

Callers 15

arrange_nodesMethod · 0.45
gui_inputMethod · 0.45
forward_3d_gui_inputMethod · 0.45
redrawMethod · 0.45
buildMethod · 0.45
createMethod · 0.45
snap_pointMethod · 0.45
_gui_input_anchorsMethod · 0.45
_snap_pointMethod · 0.45
forward_3d_gui_inputMethod · 0.45

Calls 1

snapfMethod · 0.45

Tested by

no test coverage detected