MCPcopy Create free account
hub / github.com/B33pBeeps/redthread / roundToward

Function roundToward

internal/app/notes.go:120–125  ·  view source on GitHub ↗
(f float32)

Source from the content-addressed store, hash-verified

118}
119
120func roundToward(f float32) int {
121 if f >= 0 {
122 return int(f + 0.5)
123 }
124 return int(f - 0.5)
125}
126
127// EffectiveX: SCREEN X = world→screen projection + bob.
128func (n *Note) EffectiveX(zoom int) int {

Callers 3

EffectiveXMethod · 0.85
EffectiveYMethod · 0.85
PinPosMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected