MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / string

Method string

libs/splines/math_vector.cpp:131–143  ·  view source on GitHub ↗

============= idVec3::string This is just a convenience function for printing vectors ============= */

Source from the content-addressed store, hash-verified

129=============
130*/
131char *idVec3::string( void ) {
132 static int index = 0;
133 static char str[ 8 ][ 36 ];
134 char *s;
135
136 // use an array so that multiple toString's won't collide
137 s = str[ index ];
138 index = (index + 1)&7;
139
140 sprintf( s, "%.2f %.2f %.2f", x, y, z );
141
142 return s;
143}

Callers 15

PIDFileMethod · 0.80
onMainFrameReadyMethod · 0.80
chooseAndToggleMethod · 0.80
saveCurrentMaterialMethod · 0.80
queryParticleFileMethod · 0.80
saveChangesMethod · 0.80
validateSettingsMethod · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80

Calls 1

sprintfFunction · 0.85

Tested by 4

TestContextMethod · 0.64
getTestResourcePathMethod · 0.64
getRuntimeDataPathMethod · 0.64
getLibraryPathsMethod · 0.64