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

Method CM_BoxLeafnums_headnode

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

Fills in a list of all the leafs touched and starts with the head node.

(float[] mins, float[] maxs, int[] list, int listsize, int headnode, int[] topnode)

Source from the content-addressed store, hash-verified

986
987 /** Fills in a list of all the leafs touched and starts with the head node. */
988 private int CM_BoxLeafnums_headnode(float[] mins, float[] maxs, int[] list, int listsize, int headnode, int[] topnode) {
989 leaf_list = list;
990 leaf_count = 0;
991 leaf_maxcount = listsize;
992 leaf_mins = mins;
993 leaf_maxs = maxs;
994
995 leaf_topnode = -1;
996
997 CM_BoxLeafnums_r(headnode);
998
999 if (topnode != null)
1000 topnode[0] = leaf_topnode;
1001
1002 return leaf_count;
1003 }
1004
1005 /** Fills in a list of all the leafs touched. */
1006 public int CM_BoxLeafnums(float[] mins, float[] maxs, int[] list, int listsize, int[] topnode) {

Callers 2

CM_BoxLeafnumsMethod · 0.95
BoxTraceMethod · 0.95

Calls 1

CM_BoxLeafnums_rMethod · 0.95

Tested by

no test coverage detected