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

Method CM_PointLeafnum

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

Searches the leaf number that contains the 3d point.

(float[] p)

Source from the content-addressed store, hash-verified

933
934 /** Searches the leaf number that contains the 3d point. */
935 public int CM_PointLeafnum(float[] p) {
936 // sound may call this without map loaded
937 if (numplanes == 0)
938 return 0;
939 return CM_PointLeafnum_r(p, 0);
940 }
941
942
943 private int leaf_count;

Callers 4

PF_inPVSMethod · 0.80
PF_inPHSMethod · 0.80
SV_MulticastMethod · 0.80
SV_BuildClientFrameMethod · 0.80

Calls 1

CM_PointLeafnum_rMethod · 0.95

Tested by

no test coverage detected