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

Method PointContents

qcommon/src/main/java/jake2/qcommon/CM.java:1012–1021  ·  view source on GitHub ↗

Returns a tag that describes the content of the point.

(float[] p, int headnode)

Source from the content-addressed store, hash-verified

1010
1011 /** Returns a tag that describes the content of the point. */
1012 public int PointContents(float[] p, int headnode) {
1013 int l;
1014
1015 if (numnodes == 0) // map not loaded
1016 return 0;
1017
1018 l = CM_PointLeafnum_r(p, headnode);
1019
1020 return map_leafs[l].contents;
1021 }
1022
1023 /*
1024 * ================== CM_TransformedPointContents

Callers 2

PMpointcontentsMethod · 0.80
SV_PointContentsMethod · 0.80

Calls 1

CM_PointLeafnum_rMethod · 0.95

Tested by

no test coverage detected