function isPointInsidePolygon( point, polygon ) {

	return pointRayCrossesSegments( point, polygon ) % 2 === 1;

}
Check if the given point is inside the given polygon.
@param {THREE.Vector3} point
@param {Array<THREE.Line3>} polygon
@returns {boolean}
@see https://en.wikipedia.org/wiki/Point_in_polygon#Ray_casting_algorithm