Home

class: GroupD8


Methods summary


Public methods
public static constructor(): void

Properties


Name Type Attribute Description
rotate180 public

Adds 180 degrees to rotation. Commutative operation.

isSwapWidthHeight public

I dont know why sometimes width and heights needs to be swapped. We'll fix it later.

byDirection public
matrixAppendRotationInv public

Helps sprite to compensate texture packer rotation.

rotate180 public

Adds 180 degrees to rotation. Commutative operation.

isSwapWidthHeight public

I dont know why sometimes width and heights needs to be swapped. We'll fix it later.

byDirection public
matrixAppendRotationInv public

Helps sprite to compensate texture packer rotation.

Methods


constructor(): void

Implements Dihedral Group D_8, see [group D4]{@link http://mathworld.wolfram.com/DihedralGroupD4.html},
D8 is the same but with diagonals. Used for texture rotations.

Vector xX(i), xY(i) is U-axis of sprite with rotation i
Vector yY(i), yY(i) is V-axis of sprite with rotation i
Rotations: 0 grad (0), 90 grad (2), 180 grad (4), 270 grad (6)
Mirrors: vertical (8), main diagonal (10), horizontal (12), reverse diagonal (14)
This is the small part of gameofbombs.com portal system. It works.

Returns:

void


  {
    "comment": "/**\n * Implements Dihedral Group D_8, see [group D4]{@link http://mathworld.wolfram.com/DihedralGroupD4.html},\n * D8 is the same but with diagonals. Used for texture rotations.\n *\n * Vector xX(i), xY(i) is U-axis of sprite with rotation i\n * Vector yY(i), yY(i) is V-axis of sprite with rotation i\n * Rotations: 0 grad (0), 90 grad (2), 180 grad (4), 270 grad (6)\n * Mirrors: vertical (8), main diagonal (10), horizontal (12), reverse diagonal (14)\n * This is the small part of gameofbombs.com portal system. It works.\n *\n * @author Ivan @ivanpopelyshev\n * @class\n * @memberof PIXI\n */",
    "meta": {
        "range": [
            2014,
            4597
        ],
        "filename": "GroupD8.js",
        "lineno": 77,
        "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\core\\math",
        "code": {
            "id": "astnode100016875",
            "name": "GroupD8",
            "type": "ObjectExpression",
            "value": "{\"E\":0,\"SE\":1,\"S\":2,\"SW\":3,\"W\":4,\"NW\":5,\"N\":6,\"NE\":7,\"MIRROR_VERTICAL\":8,\"MIRROR_HORIZONTAL\":12,\"uX\":\"\",\"uY\":\"\",\"vX\":\"\",\"vY\":\"\",\"inv\":\"\",\"add\":\"\",\"sub\":\"\",\"rotate180\":\"\",\"isSwapWidthHeight\":\"\",\"byDirection\":\"\",\"matrixAppendRotationInv\":\"\"}"
        }
    },
    "description": "

Implements Dihedral Group D_8, see [group D4]{@link http://mathworld.wolfram.com/DihedralGroupD4.html},
D8 is the same but with diagonals. Used for texture rotations.

\n

Vector xX(i), xY(i) is U-axis of sprite with rotation i
Vector yY(i), yY(i) is V-axis of sprite with rotation i
Rotations: 0 grad (0), 90 grad (2), 180 grad (4), 270 grad (6)
Mirrors: vertical (8), main diagonal (10), horizontal (12), reverse diagonal (14)
This is the small part of gameofbombs.com portal system. It works.

", "author": [ "Ivan @ivanpopelyshev" ], "kind": "class", "memberof": "PIXI", "name": "GroupD8", "longname": "PIXI.GroupD8", "scope": "static", "___id": "T000002R001563", "___s": true, "$methods": [ { "comment": "/**\n * Implements Dihedral Group D_8, see [group D4]{@link http://mathworld.wolfram.com/DihedralGroupD4.html},\n * D8 is the same but with diagonals. Used for texture rotations.\n *\n * Vector xX(i), xY(i) is U-axis of sprite with rotation i\n * Vector yY(i), yY(i) is V-axis of sprite with rotation i\n * Rotations: 0 grad (0), 90 grad (2), 180 grad (4), 270 grad (6)\n * Mirrors: vertical (8), main diagonal (10), horizontal (12), reverse diagonal (14)\n * This is the small part of gameofbombs.com portal system. It works.\n *\n * @author Ivan @ivanpopelyshev\n * @class\n * @memberof PIXI\n */", "meta": { "range": [ 2014, 4597 ], "filename": "GroupD8.js", "lineno": 77, "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\core\\math", "code": { "id": "astnode100016875", "name": "GroupD8", "type": "ObjectExpression", "value": "{\"E\":0,\"SE\":1,\"S\":2,\"SW\":3,\"W\":4,\"NW\":5,\"N\":6,\"NE\":7,\"MIRROR_VERTICAL\":8,\"MIRROR_HORIZONTAL\":12,\"uX\":\"\",\"uY\":\"\",\"vX\":\"\",\"vY\":\"\",\"inv\":\"\",\"add\":\"\",\"sub\":\"\",\"rotate180\":\"\",\"isSwapWidthHeight\":\"\",\"byDirection\":\"\",\"matrixAppendRotationInv\":\"\"}" } }, "description": "

Implements Dihedral Group D_8, see [group D4]{@link http://mathworld.wolfram.com/DihedralGroupD4.html},
D8 is the same but with diagonals. Used for texture rotations.

\n

Vector xX(i), xY(i) is U-axis of sprite with rotation i
Vector yY(i), yY(i) is V-axis of sprite with rotation i
Rotations: 0 grad (0), 90 grad (2), 180 grad (4), 270 grad (6)
Mirrors: vertical (8), main diagonal (10), horizontal (12), reverse diagonal (14)
This is the small part of gameofbombs.com portal system. It works.

", "author": [ "Ivan @ivanpopelyshev" ], "kind": "class", "memberof": "PIXI", "name": "constructor", "longname": "PIXI.GroupD8", "scope": "static", "___id": "T000002R001563", "___s": true, "$methods": [], "$attributes": [], "$staticmethods": [], "$staticproperties": [], "$augments": [], "$augmentedBy": [], "classConstructor": true, "slug": "constructor" } ], "$attributes": [ { "comment": "/**\n * Adds 180 degrees to rotation. Commutative operation.\n *\n * @memberof PIXI.GroupD8\n * @param {number} rotation - The number to rotate.\n * @returns {number} rotated number\n */", "meta": { "range": [ 2801, 2838 ], "filename": "GroupD8.js", "lineno": 111, "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\core\\math", "code": { "id": "astnode100016962", "name": "rotate180", "type": "ArrowFunctionExpression" } }, "description": "

Adds 180 degrees to rotation. Commutative operation.

", "memberof": "PIXI.GroupD8", "params": [ { "type": { "names": [ "number" ] }, "description": "

The number to rotate.

", "name": "rotation" } ], "returns": [ { "type": { "names": [ "number" ] }, "description": "

rotated number

" } ], "name": "rotate180", "longname": "PIXI.GroupD8.rotate180", "kind": "function", "scope": "static", "___id": "T000002R001581", "___s": true, "skip": true, "slug": "PIXI.GroupD8.rotate180", "filepath": "core\\math\\GroupD8.js" }, { "comment": "/**\n * I dont know why sometimes width and heights needs to be swapped. We'll fix it later.\n *\n * @memberof PIXI.GroupD8\n * @param {number} rotation - The number to check.\n * @returns {boolean} Whether or not the width/height should be swapped.\n */", "meta": { "range": [ 3122, 3175 ], "filename": "GroupD8.js", "lineno": 120, "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\core\\math", "code": { "id": "astnode100016968", "name": "isSwapWidthHeight", "type": "ArrowFunctionExpression" } }, "description": "

I dont know why sometimes width and heights needs to be swapped. We'll fix it later.

", "memberof": "PIXI.GroupD8", "params": [ { "type": { "names": [ "number" ] }, "description": "

The number to check.

", "name": "rotation" } ], "returns": [ { "type": { "names": [ "boolean" ] }, "description": "

Whether or not the width/height should be swapped.

" } ], "name": "isSwapWidthHeight", "longname": "PIXI.GroupD8.isSwapWidthHeight", "kind": "function", "scope": "static", "___id": "T000002R001582", "___s": true, "skip": true, "slug": "PIXI.GroupD8.isSwapWidthHeight", "filepath": "core\\math\\GroupD8.js" }, { "comment": "/**\n * @memberof PIXI.GroupD8\n * @param {number} dx - TODO\n * @param {number} dy - TODO\n *\n * @return {number} TODO\n */", "meta": { "range": [ 3330, 4006 ], "filename": "GroupD8.js", "lineno": 129, "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\core\\math", "code": { "id": "astnode100016976", "name": "byDirection", "type": "ArrowFunctionExpression" } }, "memberof": "PIXI.GroupD8", "params": [ { "type": { "names": [ "number" ] }, "description": "

TODO

", "name": "dx" }, { "type": { "names": [ "number" ] }, "description": "

TODO

", "name": "dy" } ], "returns": [ { "type": { "names": [ "number" ] }, "description": "

TODO

" } ], "name": "byDirection", "longname": "PIXI.GroupD8.byDirection", "kind": "function", "scope": "static", "___id": "T000002R001583", "___s": true, "skip": true, "slug": "PIXI.GroupD8.byDirection", "filepath": "core\\math\\GroupD8.js" }, { "comment": "/**\n * Helps sprite to compensate texture packer rotation.\n *\n * @memberof PIXI.GroupD8\n * @param {PIXI.Matrix} matrix - sprite world matrix\n * @param {number} rotation - The rotation factor to use.\n * @param {number} tx - sprite anchoring\n * @param {number} ty - sprite anchoring\n */", "meta": { "range": [ 4334, 4594 ], "filename": "GroupD8.js", "lineno": 175, "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\core\\math", "code": { "id": "astnode100017068", "name": "matrixAppendRotationInv", "type": "ArrowFunctionExpression" }, "vars": { "mat": "PIXI.GroupD8.matrixAppendRotationInv~mat", "mat.tx": "PIXI.GroupD8.matrixAppendRotationInv~mat.tx", "mat.ty": "PIXI.GroupD8.matrixAppendRotationInv~mat.ty" } }, "description": "

Helps sprite to compensate texture packer rotation.

", "memberof": "PIXI.GroupD8", "params": [ { "type": { "names": [ "PIXI.Matrix" ] }, "description": "

sprite world matrix

", "name": "matrix" }, { "type": { "names": [ "number" ] }, "description": "

The rotation factor to use.

", "name": "rotation" }, { "type": { "names": [ "number" ] }, "description": "

sprite anchoring

", "name": "tx" }, { "type": { "names": [ "number" ] }, "description": "

sprite anchoring

", "name": "ty" } ], "name": "matrixAppendRotationInv", "longname": "PIXI.GroupD8.matrixAppendRotationInv", "kind": "function", "scope": "static", "___id": "T000002R001584", "___s": true, "skip": true, "slug": "PIXI.GroupD8.matrixAppendRotationInv", "filepath": "core\\math\\GroupD8.js" }, { "comment": "/**\n * Adds 180 degrees to rotation. Commutative operation.\n *\n * @memberof PIXI.GroupD8\n * @param {number} rotation - The number to rotate.\n * @returns {number} rotated number\n */", "meta": { "range": [ 2801, 2838 ], "filename": "GroupD8.js", "lineno": 111, "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\core\\math", "code": { "id": "astnode100091641", "name": "rotate180", "type": "ArrowFunctionExpression" } }, "description": "

Adds 180 degrees to rotation. Commutative operation.

", "memberof": "PIXI.GroupD8", "params": [ { "type": { "names": [ "number" ] }, "description": "

The number to rotate.

", "name": "rotation" } ], "returns": [ { "type": { "names": [ "number" ] }, "description": "

rotated number

" } ], "name": "rotate180", "longname": "PIXI.GroupD8.rotate180", "kind": "function", "scope": "static", "___id": "T000002R008515", "___s": true, "skip": true, "slug": "PIXI.GroupD8.rotate180", "filepath": "core\\math\\GroupD8.js" }, { "comment": "/**\n * I dont know why sometimes width and heights needs to be swapped. We'll fix it later.\n *\n * @memberof PIXI.GroupD8\n * @param {number} rotation - The number to check.\n * @returns {boolean} Whether or not the width/height should be swapped.\n */", "meta": { "range": [ 3122, 3175 ], "filename": "GroupD8.js", "lineno": 120, "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\core\\math", "code": { "id": "astnode100091647", "name": "isSwapWidthHeight", "type": "ArrowFunctionExpression" } }, "description": "

I dont know why sometimes width and heights needs to be swapped. We'll fix it later.

", "memberof": "PIXI.GroupD8", "params": [ { "type": { "names": [ "number" ] }, "description": "

The number to check.

", "name": "rotation" } ], "returns": [ { "type": { "names": [ "boolean" ] }, "description": "

Whether or not the width/height should be swapped.

" } ], "name": "isSwapWidthHeight", "longname": "PIXI.GroupD8.isSwapWidthHeight", "kind": "function", "scope": "static", "___id": "T000002R008516", "___s": true, "skip": true, "slug": "PIXI.GroupD8.isSwapWidthHeight", "filepath": "core\\math\\GroupD8.js" }, { "comment": "/**\n * @memberof PIXI.GroupD8\n * @param {number} dx - TODO\n * @param {number} dy - TODO\n *\n * @return {number} TODO\n */", "meta": { "range": [ 3330, 4006 ], "filename": "GroupD8.js", "lineno": 129, "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\core\\math", "code": { "id": "astnode100091655", "name": "byDirection", "type": "ArrowFunctionExpression" } }, "memberof": "PIXI.GroupD8", "params": [ { "type": { "names": [ "number" ] }, "description": "

TODO

", "name": "dx" }, { "type": { "names": [ "number" ] }, "description": "

TODO

", "name": "dy" } ], "returns": [ { "type": { "names": [ "number" ] }, "description": "

TODO

" } ], "name": "byDirection", "longname": "PIXI.GroupD8.byDirection", "kind": "function", "scope": "static", "___id": "T000002R008517", "___s": true, "skip": true, "slug": "PIXI.GroupD8.byDirection", "filepath": "core\\math\\GroupD8.js" }, { "comment": "/**\n * Helps sprite to compensate texture packer rotation.\n *\n * @memberof PIXI.GroupD8\n * @param {PIXI.Matrix} matrix - sprite world matrix\n * @param {number} rotation - The rotation factor to use.\n * @param {number} tx - sprite anchoring\n * @param {number} ty - sprite anchoring\n */", "meta": { "range": [ 4334, 4594 ], "filename": "GroupD8.js", "lineno": 175, "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\core\\math", "code": { "id": "astnode100091747", "name": "matrixAppendRotationInv", "type": "ArrowFunctionExpression" }, "vars": { "mat": "PIXI.GroupD8.matrixAppendRotationInv~mat", "mat.tx": "PIXI.GroupD8.matrixAppendRotationInv~mat.tx", "mat.ty": "PIXI.GroupD8.matrixAppendRotationInv~mat.ty" } }, "description": "

Helps sprite to compensate texture packer rotation.

", "memberof": "PIXI.GroupD8", "params": [ { "type": { "names": [ "PIXI.Matrix" ] }, "description": "

sprite world matrix

", "name": "matrix" }, { "type": { "names": [ "number" ] }, "description": "

The rotation factor to use.

", "name": "rotation" }, { "type": { "names": [ "number" ] }, "description": "

sprite anchoring

", "name": "tx" }, { "type": { "names": [ "number" ] }, "description": "

sprite anchoring

", "name": "ty" } ], "name": "matrixAppendRotationInv", "longname": "PIXI.GroupD8.matrixAppendRotationInv", "kind": "function", "scope": "static", "___id": "T000002R008518", "___s": true, "skip": true, "slug": "PIXI.GroupD8.matrixAppendRotationInv", "filepath": "core\\math\\GroupD8.js" } ], "$staticmethods": [], "$staticproperties": [], "$augments": [], "$augmentedBy": [], "filepath": "core\\math\\GroupD8.js" }