MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / Math_Floor

Function Math_Floor

src/ExtMath.c:13–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12
13int Math_Floor(float value) {
14 int valueI = (int)value;
15 return valueI > value ? valueI - 1 : valueI;
16}
17
18int Math_Ceil(float value) {
19 int valueI = (int)value;

Callers 15

CollidesHorFunction · 0.85
IntersectsBlockFunction · 0.85
PhysicsTickFunction · 0.85
RainParticle_RenderFunction · 0.85
TerrainParticle_RenderFunction · 0.85
CustomParticle_RenderFunction · 0.85
HotbarWidget_RepositionFunction · 0.85
EntityShadow_DrawCircleFunction · 0.85
EntityShadow_DrawFunction · 0.85
Respawn_HighestSolidYFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected