MCPcopy Create free account
hub / github.com/demoth/jake2 / readDir

Method readDir

qcommon/src/main/java/jake2/qcommon/sizebuf_t.java:256–263  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

254 }
255
256 public float[] readDir() {
257 float[] dir = new float[3];
258 int b = readByte();
259 if (b >= Defines.NUMVERTEXNORMALS)
260 Com.Error(Defines.ERR_DROP, "MSF_ReadDir: out of range");
261 Math3D.VectorCopy(Globals.bytedirs[b], dir);
262 return dir;
263 }
264
265 /**
266 * Read 'len' bytes into 'data'

Callers 2

parseMethod · 0.80
parseMethod · 0.80

Calls 3

readByteMethod · 0.95
ErrorMethod · 0.95
VectorCopyMethod · 0.95

Tested by

no test coverage detected