Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Takes points as an array of three-item arrays and the base point an a single array, in that order. Does not take the size argument.
Try it online! or run the huge test case with -R to output one x,y,z per line.