get Nearest Point To
Returns the nearest point on this geometry to point.
Returns the nearest point on this geometry to shape.
The shape is expected to already be expressed in the same coordinate system as this geometry. For block-local shapes, call net.minecraft.world.phys.shapes.VoxelShape.move before passing them in.
Return
nearest point on this geometry together with squared distance, or null if shape is empty
Returns the nearest point on this geometry to box.