Polygon Class
Constructor
Polygon
    
        
            (
    
    
    
    
    
    
    
    
    
    - 
                    
                        points
Parameters:
- 
                    
                        pointsArray| Array multiple| Point... | Number... This can be an array of Points that form the polygon, a flat array of numbers that will be interpreted as [x,y, x,y, ...], or the arguments passed can be all the points of the polygon e.g. new PIXI.Polygon(new PIXI.Point(), new PIXI.Point(), ...), or the arguments passed can be flat x,y values e.g.new PIXI.Polygon(x,y, x,y, x,y, ...)wherexandyare Numbers.
Methods
contains
    
        
            (
    
    
        
            Boolean
        
    
    
    
    
    
    
    
    
    - 
                    
                        x
- 
                    
                        y
Checks if the x and y coords passed to this function are contained within this polygon
Parameters:
- 
                    
                        xNumberThe X coord of the point to test 
- 
                    
                        yNumberThe Y coord of the point to test 
Returns:
                
                    
                        Boolean:
                    
                    
        if the x/y coords are within this polygon
