public bool ObjectIntersectsBox(int objectIndex, Box3d box) { var pa = m_positionArray; return(box.IntersectsLine(pa[objectIndex], pa[objectIndex + 1])); }