Members
        
            
    
        
            
            PIXI.groupD8.E
            number
            
            staticreadonly
            
            
        
     
    
    
    
        
| Rotation | 
Direction | 
| 0° | 
East | 
     
    
    
    
    
    
    
    
    
    
    
    - Default Value:
 
    
    
    
    
    
    
        
            
    
        
            
            PIXI.groupD8.MAIN_DIAGONAL
            number
            
            staticreadonly
            
            
        
     
    
    
    
        Reflection about the main diagonal.
     
    
    
    
    
    
    
    
    
    
    
    - Default Value:
 
    
    
    
    
    
    
        
            
    
        
            
            PIXI.groupD8.MIRROR_HORIZONTAL
            number
            
            staticreadonly
            
            
        
     
    
    
    
    
    
    
    
    
    
    
    
    
    
    - Default Value:
 
    
    
    
    
    
    
        
            
    
        
            
            PIXI.groupD8.MIRROR_VERTICAL
            number
            
            staticreadonly
            
            
        
     
    
    
    
    
    
    
    
    
    
    
    
    
    
    - Default Value:
 
    
    
    
    
    
    
        
            
    
        
            
            PIXI.groupD8.N
            number
            
            staticreadonly
            
            
        
     
    
    
    
        
| Rotation | 
Direction | 
| -90°/270°↻ | 
North | 
     
    
    
    
    
    
    
    
    
    
    
    - Default Value:
 
    
    
    
    
    
    
        
            
    
        
            
            PIXI.groupD8.NE
            number
            
            staticreadonly
            
            
        
     
    
    
    
        
| Rotation | 
Direction | 
| -45°/315°↻ | 
Northeast | 
     
    
    
    
    
    
    
    
    
    
    
    - Default Value:
 
    
    
    
    
    
    
        
            
    
        
            
            PIXI.groupD8.NW
            number
            
            staticreadonly
            
            
        
     
    
    
    
        
| Rotation | 
Direction | 
| -135°/225°↻ | 
Northwest | 
     
    
    
    
    
    
    
    
    
    
    
    - Default Value:
 
    
    
    
    
    
    
        
            
    
        
            
            PIXI.groupD8.REVERSE_DIAGONAL
            number
            
            staticreadonly
            
            
        
     
    
    
    
        Reflection about reverse diagonal.
     
    
    
    
    
    
    
    
    
    
    
    - Default Value:
 
    
    
    
    
    
    
        
            
    
        
            
            PIXI.groupD8.S
            number
            
            staticreadonly
            
            
        
     
    
    
    
        
| Rotation | 
Direction | 
| 90°↻ | 
South | 
     
    
    
    
    
    
    
    
    
    
    
    - Default Value:
 
    
    
    
    
    
    
        
            
    
        
            
            PIXI.groupD8.SE
            number
            
            staticreadonly
            
            
        
     
    
    
    
        
| Rotation | 
Direction | 
| 45°↻ | 
Southeast | 
     
    
    
    
    
    
    
    
    
    
    
    - Default Value:
 
    
    
    
    
    
    
        
            
    
        
            
            PIXI.groupD8.SW
            number
            
            staticreadonly
            
            
        
     
    
    
    
        
| Rotation | 
Direction | 
| 135°↻ | 
Southwest | 
     
    
    
    
    
    
    
    
    
    
    
    - Default Value:
 
    
    
    
    
    
    
        
            
    
        
            
            PIXI.groupD8.W
            number
            
            staticreadonly
            
            
        
     
    
    
    
        
| Rotation | 
Direction | 
| 180° | 
West | 
     
    
    
    
    
    
    
    
    
    
    
    - Default Value:
 
    
    
    
    
    
    
        
    
    
    
    
        Methods
        
            
    
    
      Composes the two D8 operations.
    
    
    
        Taking ^ as reflection:
 | 
E=0 | 
S=2 | 
W=4 | 
N=6 | 
E^=8 | 
S^=10 | 
W^=12 | 
N^=14 | 
| E=0 | 
E | 
S | 
W | 
N | 
E^ | 
S^ | 
W^ | 
N^ | 
| S=2 | 
S | 
W | 
N | 
E | 
S^ | 
W^ | 
N^ | 
E^ | 
| W=4 | 
W | 
N | 
E | 
S | 
W^ | 
N^ | 
E^ | 
S^ | 
| N=6 | 
N | 
E | 
S | 
W | 
N^ | 
E^ | 
S^ | 
W^ | 
| E^=8 | 
E^ | 
N^ | 
W^ | 
S^ | 
E | 
N | 
W | 
S | 
| S^=10 | 
S^ | 
E^ | 
N^ | 
W^ | 
S | 
E | 
N | 
W | 
| W^=12 | 
W^ | 
S^ | 
E^ | 
N^ | 
W | 
S | 
E | 
N | 
| N^=14 | 
N^ | 
W^ | 
S^ | 
E^ | 
N | 
W | 
S | 
E | 
This is a Cayley table
     
    
    
    
    
        
    
    
        
            | Name | 
        
        Type | 
        
        
        Description | 
    
    
    
    
        
            
                rotationSecond | 
            
            
            
                PIXI.GD8Symmetry
            
             | 
            
            
            
                 Second operation, which
is the row in the above cayley table. 
                
             | 
        
    
        
            
                rotationFirst | 
            
            
            
                PIXI.GD8Symmetry
            
             | 
            
            
            
                 First operation, which
is the column in the above cayley table. 
                
             | 
        
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      Returns:
      
    
    
        
            
    
    
    
    
        Approximates the vector V(dx,dy) into one of the
eight directions provided by groupD8.
     
    
    
    
    
        
    
    
        
            | Name | 
        
        Type | 
        
        
        Description | 
    
    
    
    
        
            
                dx | 
            
            
            
                number
            
             | 
            
            
            
                 X-component of the vector 
                
             | 
        
    
        
            
                dy | 
            
            
            
                number
            
             | 
            
            
            
                 Y-component of the vector 
                
             | 
        
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      Returns:
      
    
    
        
        | Type | 
        Description | 
    
    
    
    
        
            
            | 
            
                    PIXI.GD8Symmetry
            
             | 
            Approximation of the vector into
one of the eight symmetries. | 
        
    
    
    
    
        
            
    
    
    
    
    
    
        
    
    
        
            | Name | 
        
        Type | 
        
        
        Description | 
    
    
    
    
        
            
                rotation | 
            
            
            
                PIXI.GD8Symmetry
            
             | 
            
            
            
                 symmetry whose opposite
is needed. Only rotations have opposite symmetries while
reflections don't. 
                
             | 
        
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      Returns:
      
    
    
        
            
    
        
            
            
              
                  PIXI.groupD8.isVertical
              
            
            (rotation) boolean
            
            static
            
            
        
        
        
        
     
    
    
    
        Checks if the rotation angle is vertical, i.e. south
or north. It doesn't work for reflections.
     
    
    
    
    
        
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      Returns:
      
    
    
        
        | Type | 
        Description | 
    
    
    
    
        
            
            | 
            
                    boolean
            
             | 
            Whether or not the direction is vertical | 
        
    
    
    
    
        
            
    
        
            
            
              
                  PIXI.groupD8.matrixAppendRotationInv
              
            
            (matrix, rotation, tx, ty) void
            
            static
            
            
        
        
        
        
     
    
    
    
        Helps sprite to compensate texture packer rotation.
     
    
    
    
    
        
    
    
        
            | Name | 
        
        Type | 
        
        
            Default | 
        
        Description | 
    
    
    
    
        
            
                matrix | 
            
            
            
                PIXI.Matrix
            
             | 
            
            
                
                    
                 | 
            
            
                 sprite world matrix 
                
             | 
        
    
        
            
                rotation | 
            
            
            
                PIXI.GD8Symmetry
            
             | 
            
            
                
                    
                 | 
            
            
                 The rotation factor to use. 
                
             | 
        
    
        
            
                tx | 
            
            
            
                number
            
             | 
            
            
                
                    
                        0
                    
                 | 
            
            
                 sprite anchoring 
                
             | 
        
    
        
            
                ty | 
            
            
            
                number
            
             | 
            
            
                
                    
                        0
                    
                 | 
            
            
                 sprite anchoring 
                
             | 
        
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        
            
    
        
            
            
              
                  PIXI.groupD8.rotate180
              
            
            (rotation) number
            
            static
            
            
        
        
        
        
     
    
    
    
        Adds 180 degrees to rotation, which is a commutative
operation.
     
    
    
    
    
        
    
    
        
            | Name | 
        
        Type | 
        
        
        Description | 
    
    
    
    
        
            
                rotation | 
            
            
            
                number
            
             | 
            
            
            
                 The number to rotate. 
                
             | 
        
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      Returns:
      
    
    
        
        | Type | 
        Description | 
    
    
    
    
        
            
            | 
            
                    number
            
             | 
            Rotated number | 
        
    
    
    
    
        
            
    
    
    
    
    
    
    
    
        
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      Returns:
      
    
    
        
            
    
    
    
    
    
    
        
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      Returns:
      
    
    
        
        | Type | 
        Description | 
    
    
    
    
        
            
            | 
            
                    PIXI.GD8Symmetry
            
             | 
            The X-component of the U-axis
after rotating the axes. | 
        
    
    
    
    
        
            
    
    
    
    
    
    
        
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      Returns:
      
    
    
        
        | Type | 
        Description | 
    
    
    
    
        
            
            | 
            
                    PIXI.GD8Symmetry
            
             | 
            The Y-component of the U-axis
after rotating the axes. | 
        
    
    
    
    
        
            
    
    
    
    
    
    
        
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      Returns:
      
    
    
        
        | Type | 
        Description | 
    
    
    
    
        
            
            | 
            
                    PIXI.GD8Symmetry
            
             | 
            The X-component of the V-axis
after rotating the axes. | 
        
    
    
    
    
        
            
    
    
    
    
    
    
        
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      Returns:
      
    
    
        
        | Type | 
        Description | 
    
    
    
    
        
            
            | 
            
                    PIXI.GD8Symmetry
            
             | 
            The Y-component of the V-axis
after rotating the axes. |