How to detect if position is inside or outside of polygon shape made from points

Hi, i’m curious how i can detect if position of something is inside polygon made up from points in 3D space, how can i do it, and without touching event or something like that, simply