repo stringlengths 5 106 | file_url stringlengths 78 301 | file_path stringlengths 4 211 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:56:49 2026-01-05 02:23:25 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/triangle/BuildRight.js | src/geom/triangle/BuildRight.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Triangle = require('./Triangle');
// Builds a right triangle, with one 90 degree angle and two acute angles
// The x/y is the coordinate ... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/triangle/CenterOn.js | src/geom/triangle/CenterOn.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Centroid = require('./Centroid');
var Offset = require('./Offset');
/**
* @callback CenterFunction
*
* @param {Phaser.Geom.Triangle} tri... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/triangle/GetPoints.js | src/geom/triangle/GetPoints.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Length = require('../line/Length');
var Point = require('../point/Point');
/**
* Returns an array of evenly spaced points on the perimeter... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/triangle/Rotate.js | src/geom/triangle/Rotate.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var RotateAroundXY = require('./RotateAroundXY');
var InCenter = require('./InCenter');
/**
* Rotates a Triangle about its incenter, which is ... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/triangle/Centroid.js | src/geom/triangle/Centroid.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Point = require('../point/Point');
// The three medians (the lines drawn from the vertices to the bisectors of the opposite sides)
// mee... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/mesh/RotateFace.js | src/geom/mesh/RotateFace.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* Rotates the vertices of a Face to the given angle.
*
* The actual vertex positions are adjusted, not their transformed positions.
*
*... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/mesh/Face.js | src/geom/mesh/Face.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Class = require('../../utils/Class');
var Rectangle = require('../rectangle/Rectangle');
var Vector2 = require('../../math/Vector2');
/**
... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/mesh/index.js | src/geom/mesh/index.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* @namespace Phaser.Geom.Mesh
*/
var Mesh = {
Face: require('./Face'),
GenerateGridVerts: require('./GenerateGridVerts'),
Ge... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/mesh/ParseObj.js | src/geom/mesh/ParseObj.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var flip = true;
var defaultModelName = 'untitled';
var currentGroup = '';
var currentMaterial = '';
/**
* @ignore
*/
function stripComments... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/mesh/GenerateVerts.js | src/geom/mesh/GenerateVerts.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Face = require('./Face');
var Vertex = require('./Vertex');
/**
* Generates a set of Face and Vertex objects by parsing the given data.
*... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/mesh/ParseObjMaterial.js | src/geom/mesh/ParseObjMaterial.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var GetColor = require('../../display/color/GetColor');
/**
* Takes a Wavefront Material file and extracts the diffuse reflectivity of the nam... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/mesh/GenerateGridVerts.js | src/geom/mesh/GenerateGridVerts.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Face = require('./Face');
var GetFastValue = require('../../utils/object/GetFastValue');
var Matrix4 = require('../../math/Matrix4');
var Ve... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/mesh/Vertex.js | src/geom/mesh/Vertex.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Class = require('../../utils/Class');
var Utils = require('../../renderer/webgl/Utils');
var Vector3 = require('../../math/Vector3');
/**
... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/mesh/GenerateObjVerts.js | src/geom/mesh/GenerateObjVerts.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Face = require('./Face');
var Matrix4 = require('../../math/Matrix4');
var Vector3 = require('../../math/Vector3');
var Vertex = require('./... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/mesh/typedefs/UV.js | src/geom/mesh/typedefs/UV.js | /**
* @typedef {object} Phaser.Types.Geom.Mesh.UV
* @since 3.50.0
*
* @property {number} u - The u component.
* @property {number} v - The v component.
* @property {number} w - The w component.
*/
| javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/mesh/typedefs/GenerateGridVertsResult.js | src/geom/mesh/typedefs/GenerateGridVertsResult.js | /**
* @typedef {object} Phaser.Types.Geom.Mesh.GenerateGridVertsResult
* @since 3.50.0
*
* @property {number[]} verts - An array of vertex values in x, y pairs.
* @property {number[]} indices - An array of vertex indexes. This array will be empty if the `tile` parameter was `true`.
* @property {number[]} uvs - An... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/mesh/typedefs/OBJFaceVertice.js | src/geom/mesh/typedefs/OBJFaceVertice.js | /**
* @typedef {object} Phaser.Types.Geom.Mesh.OBJFaceVertice
* @since 3.50.0
*
* @property {number} textureCoordsIndex - The index in the `textureCoords` array that this vertex uses.
* @property {number} vertexIndex - The index in the `vertices` array that this vertex uses.
* @property {number} vertexNormalIndex... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/mesh/typedefs/index.js | src/geom/mesh/typedefs/index.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* @namespace Phaser.Types.Geom.Mesh
*/
| javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/mesh/typedefs/OBJFace.js | src/geom/mesh/typedefs/OBJFace.js | /**
* @typedef {object} Phaser.Types.Geom.Mesh.OBJFace
* @since 3.50.0
*
* @property {string} group - The name of the Group this Face is in.
* @property {string} material - The name of the material this Face uses.
* @property {Phaser.Types.Geom.Mesh.OBJFaceVertice[]} vertices - An array of vertices in this Face.
... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/mesh/typedefs/GenerateGridConfig.js | src/geom/mesh/typedefs/GenerateGridConfig.js | /**
* @typedef {object} Phaser.Types.Geom.Mesh.GenerateGridConfig
* @since 3.50.0
*
* @property {(string|Phaser.Textures.Texture)} texture - The texture to be used for this Grid. Must be a Texture instance. Can also be a string but only if the `mesh` property is set.
* @property {(string|number)} [frame] - The nam... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/mesh/typedefs/GenerateVertsResult.js | src/geom/mesh/typedefs/GenerateVertsResult.js | /**
* @typedef {object} Phaser.Types.Geom.Mesh.GenerateVertsResult
* @since 3.50.0
*
* @property {Phaser.Geom.Mesh.Face[]} faces - An array of Face objects generated from the OBJ Data.
* @property {Phaser.Geom.Mesh.Vertex[]} vertices - An array of Vertex objects generated from the OBJ Data.
*/
| javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/mesh/typedefs/OBJData.js | src/geom/mesh/typedefs/OBJData.js | /**
* @typedef {object} Phaser.Types.Geom.Mesh.OBJData
* @since 3.50.0
*
* @property {string[]} materialLibraries - An array of material library filenames found in the OBJ file.
* @property {object} materials - If the obj was loaded with an mtl file, the parsed material names are stored in this object.
* @propert... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/mesh/typedefs/OBJModel.js | src/geom/mesh/typedefs/OBJModel.js | /**
* @typedef {object} Phaser.Types.Geom.Mesh.OBJModel
* @since 3.50.0
*
* @property {Phaser.Types.Geom.Mesh.OBJFace[]} faces - An array of Faces.
* @property {string} name - The name of the model.
* @property {Phaser.Types.Geom.Mesh.UV[]} textureCoords - An array of texture coordinates.
* @property {Phaser.Typ... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/typedefs/index.js | src/geom/typedefs/index.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* @namespace Phaser.Types.Geom
*/
| javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/intersects/GetCircleToCircle.js | src/geom/intersects/GetCircleToCircle.js | /**
* @author Florian Vazelle
* @author Geoffrey Glaive
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Point = require('../point/Point');
var CircleToCircle = require('./CircleToCircle');
/**
* Checks if two Circles interse... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/intersects/GetLineToCircle.js | src/geom/intersects/GetLineToCircle.js | /**
* @author Florian Vazelle
* @author Geoffrey Glaive
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Point = require('../point/Point');
var LineToCircle = require('./LineToCircle');
/**
* Checks for intersection between t... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/intersects/GetLineToRectangle.js | src/geom/intersects/GetLineToRectangle.js | /**
* @author Florian Vazelle
* @author Geoffrey Glaive
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Point = require('../point/Point');
var LineToLine = require('./LineToLine');
var LineToRectangle = require('./LineToRectan... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/intersects/GetTriangleToTriangle.js | src/geom/intersects/GetTriangleToTriangle.js | /**
* @author Florian Vazelle
* @author Geoffrey Glaive
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var TriangleToTriangle = require('./TriangleToTriangle');
var GetTriangleToLine = require('./GetTriangleToLine');
/**
* Chec... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/intersects/GetCircleToRectangle.js | src/geom/intersects/GetCircleToRectangle.js | /**
* @author Florian Vazelle
* @author Geoffrey Glaive
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var GetLineToCircle = require('./GetLineToCircle');
var CircleToRectangle = require('./CircleToRectangle');
/**
* Checks for... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/intersects/index.js | src/geom/intersects/index.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* @namespace Phaser.Geom.Intersects
*/
module.exports = {
CircleToCircle: require('./CircleToCircle'),
CircleToRectangle: requir... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/intersects/RectangleToValues.js | src/geom/intersects/RectangleToValues.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* Check if rectangle intersects with values.
*
* @function Phaser.Geom.Intersects.RectangleToValues
* @since 3.0.0
*
* @param {Phaser.... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/intersects/GetRaysFromPointToPolygon.js | src/geom/intersects/GetRaysFromPointToPolygon.js | /**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Vector4 = require('../../math/Vector4');
var GetLineToPolygon = require('./GetLineToPolygon');
var Line = require('../line/Line');
// Temp calculation segm... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/intersects/GetTriangleToLine.js | src/geom/intersects/GetTriangleToLine.js | /**
* @author Florian Vazelle
* @author Geoffrey Glaive
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Point = require('../point/Point');
var TriangleToLine = require('./TriangleToLine');
var LineToLine = require('./LineToLin... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/intersects/TriangleToLine.js | src/geom/intersects/TriangleToLine.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var LineToLine = require('./LineToLine');
/**
* Checks if a Triangle and a Line intersect.
*
* The Line intersects the Triangle if it starts... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/intersects/GetRectangleToRectangle.js | src/geom/intersects/GetRectangleToRectangle.js | /**
* @author Florian Vazelle
* @author Geoffrey Glaive
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var GetLineToRectangle = require('./GetLineToRectangle');
var RectangleToRectangle = require('./RectangleToRectangle');
/**
... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/intersects/GetTriangleToCircle.js | src/geom/intersects/GetTriangleToCircle.js | /**
* @author Florian Vazelle
* @author Geoffrey Glaive
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var GetLineToCircle = require('./GetLineToCircle');
var TriangleToCircle = require('./TriangleToCircle');
/**
* Checks if a ... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/intersects/GetLineToPoints.js | src/geom/intersects/GetLineToPoints.js | /**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var GetLineToLine = require('./GetLineToLine');
var Line = require('../line/Line');
var Vector3 = require('../../math/Vector3');
// Temp calculation segment
va... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/intersects/PointToLineSegment.js | src/geom/intersects/PointToLineSegment.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var PointToLine = require('./PointToLine');
/**
* Checks if a Point is located on the given line segment.
*
* @function Phaser.Geom.Intersec... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/intersects/GetRectangleIntersection.js | src/geom/intersects/GetRectangleIntersection.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Rectangle = require('../rectangle/Rectangle');
var RectangleToRectangle = require('./RectangleToRectangle');
/**
* Checks if two Rectangle... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/intersects/GetLineToLine.js | src/geom/intersects/GetLineToLine.js | /**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Vector3 = require('../../math/Vector3');
/**
* Checks for intersection between the two line segments, or a ray and a line segment,
* and returns the inter... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/intersects/TriangleToTriangle.js | src/geom/intersects/TriangleToTriangle.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var ContainsArray = require('../triangle/ContainsArray');
var Decompose = require('../triangle/Decompose');
var LineToLine = require('./LineToLi... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/intersects/RectangleToRectangle.js | src/geom/intersects/RectangleToRectangle.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* Checks if two Rectangles intersect.
*
* A Rectangle intersects another Rectangle if any part of its bounds is within the other Rectangl... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/intersects/PointToLine.js | src/geom/intersects/PointToLine.js | /**
* @author Richard Davey <rich@phaser.io>
* @author Florian Mertens
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* Checks if the a Point falls between the two end-points of a Line, based on the given line thickness.
*
... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/intersects/LineToCircle.js | src/geom/intersects/LineToCircle.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Contains = require('../circle/Contains');
var Point = require('../point/Point');
var tmp = new Point();
/**
* Checks for intersection bet... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/intersects/LineToLine.js | src/geom/intersects/LineToLine.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
// This is based off an explanation and expanded math presented by Paul Bourke:
// See http://paulbourke.net/geometry/pointlineplane/
/**
* ... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/intersects/CircleToRectangle.js | src/geom/intersects/CircleToRectangle.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* Checks for intersection between a circle and a rectangle.
*
* @function Phaser.Geom.Intersects.CircleToRectangle
* @since 3.0.0
*
* ... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/intersects/GetLineToPolygon.js | src/geom/intersects/GetLineToPolygon.js | /**
* @author Richard Davey
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Vector3 = require('../../math/Vector3');
var Vector4 = require('../../math/Vector4');
var GetLineToPoints = require('./GetLineToPoints');
// Temp vec3
var ... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/intersects/CircleToCircle.js | src/geom/intersects/CircleToCircle.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var DistanceBetween = require('../../math/distance/DistanceBetween');
/**
* Checks if two Circles intersect.
*
* @function Phaser.Geom.Inter... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/intersects/TriangleToCircle.js | src/geom/intersects/TriangleToCircle.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var LineToCircle = require('./LineToCircle');
var Contains = require('../triangle/Contains');
/**
* Checks if a Triangle and a Circle intersec... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/intersects/RectangleToTriangle.js | src/geom/intersects/RectangleToTriangle.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var LineToLine = require('./LineToLine');
var Contains = require('../rectangle/Contains');
var ContainsArray = require('../triangle/ContainsArra... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/intersects/GetRectangleToTriangle.js | src/geom/intersects/GetRectangleToTriangle.js | /**
* @author Florian Vazelle
* @author Geoffrey Glaive
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var RectangleToTriangle = require('./RectangleToTriangle');
var GetLineToRectangle = require('./GetLineToRectangle');
/**
* ... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/intersects/LineToRectangle.js | src/geom/intersects/LineToRectangle.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* Checks for intersection between the Line and a Rectangle shape, or a rectangle-like
* object, with public `x`, `y`, `right` and `bottom`... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/curves/LineCurve.js | src/curves/LineCurve.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
// Based on the three.js Curve classes created by [zz85](http://www.lab4games.net/zz85/blog)
var Class = require('../utils/Class');
var Curve ... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/curves/EllipseCurve.js | src/curves/EllipseCurve.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
// Based on the three.js Curve classes created by [zz85](http://www.lab4games.net/zz85/blog)
var Class = require('../utils/Class');
var Curve ... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/curves/index.js | src/curves/index.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* @namespace Phaser.Curves
*/
module.exports = {
Path: require('./path/Path'),
MoveTo: require('./path/MoveTo'),
CubicBezier... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/curves/QuadraticBezierCurve.js | src/curves/QuadraticBezierCurve.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Class = require('../utils/Class');
var Curve = require('./Curve');
var QuadraticBezierInterpolation = require('../math/interpolation/Quadrat... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/curves/CubicBezierCurve.js | src/curves/CubicBezierCurve.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
// Based on the three.js Curve classes created by [zz85](http://www.lab4games.net/zz85/blog)
var Class = require('../utils/Class');
var CubicB... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/curves/Curve.js | src/curves/Curve.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Class = require('../utils/Class');
var FromPoints = require('../geom/rectangle/FromPoints');
var Rectangle = require('../geom/rectangle/Rect... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/curves/SplineCurve.js | src/curves/SplineCurve.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
// Based on the three.js Curve classes created by [zz85](http://www.lab4games.net/zz85/blog)
var CatmullRom = require('../math/CatmullRom');
v... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/curves/path/MoveTo.js | src/curves/path/MoveTo.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Class = require('../../utils/Class');
var Vector2 = require('../../math/Vector2');
/**
* @classdesc
* A MoveTo Curve is a very simple cur... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/curves/path/Path.js | src/curves/path/Path.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
// Based on the three.js Curve classes created by [zz85](http://www.lab4games.net/zz85/blog)
var Class = require('../../utils/Class');
var Cub... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/curves/typedefs/index.js | src/curves/typedefs/index.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* @namespace Phaser.Types.Curves
*/
| javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/curves/typedefs/JSONEllipseCurve.js | src/curves/typedefs/JSONEllipseCurve.js | /**
* @typedef {object} Phaser.Types.Curves.JSONEllipseCurve
* @since 3.0.0
*
* @property {string} type - The of the curve.
* @property {number} x - The x coordinate of the ellipse.
* @property {number} y - The y coordinate of the ellipse.
* @property {number} xRadius - The horizontal radius of ellipse.
* @prop... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/curves/typedefs/JSONCurve.js | src/curves/typedefs/JSONCurve.js | /**
* @typedef {object} Phaser.Types.Curves.JSONCurve
* @since 3.0.0
*
* @property {string} type - The of the curve
* @property {number[]} points - The arrays of points like `[x1, y1, x2, y2]`
*/
| javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/curves/typedefs/EllipseCurveConfig.js | src/curves/typedefs/EllipseCurveConfig.js | /**
* @typedef {object} Phaser.Types.Curves.EllipseCurveConfig
*
* @property {number} [x=0] - The x coordinate of the ellipse.
* @property {number} [y=0] - The y coordinate of the ellipse.
* @property {number} [xRadius=0] - The horizontal radius of the ellipse.
* @property {number} [yRadius=0] - The vertical radi... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/curves/typedefs/JSONPath.js | src/curves/typedefs/JSONPath.js | /**
* @typedef {object} Phaser.Types.Curves.JSONPath
* @since 3.0.0
*
* @property {string} type - The of the curve.
* @property {number} x - The X coordinate of the curve's starting point.
* @property {number} y - The Y coordinate of the path's starting point.
* @property {boolean} autoClose - The path is auto c... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/actions/IncXY.js | src/actions/IncXY.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var PropertyValueInc = require('./PropertyValueInc');
/**
* Takes an array of Game Objects, or any objects that have public `x` and `y` proper... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/actions/SetScaleX.js | src/actions/SetScaleX.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var PropertyValueSet = require('./PropertyValueSet');
/**
* Takes an array of Game Objects, or any objects that have the public property `scal... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/actions/SetHitArea.js | src/actions/SetHitArea.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* Passes all provided Game Objects to the Input Manager to enable them for input with identical areas and callbacks.
*
* @see {@link Phas... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/actions/SetAlpha.js | src/actions/SetAlpha.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var PropertyValueSet = require('./PropertyValueSet');
/**
* Takes an array of Game Objects, or any objects that have the public property `alph... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/actions/AlignTo.js | src/actions/AlignTo.js | /**
* @author samme
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var QuickSet = require('../display/align/to/QuickSet');
/**
* Takes an array of Game Objects and aligns them next to each other.
*
* The alignment position is contro... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/actions/ScaleY.js | src/actions/ScaleY.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var PropertyValueInc = require('./PropertyValueInc');
/**
* Takes an array of Game Objects, or any objects that have a public `scaleY` propert... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/actions/Call.js | src/actions/Call.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* Takes an array of objects and passes each of them to the given callback.
*
* @function Phaser.Actions.Call
* @since 3.0.0
*
* @gener... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/actions/RandomTriangle.js | src/actions/RandomTriangle.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Random = require('../geom/triangle/Random');
/**
* Takes an array of Game Objects and positions them at random locations within the Triang... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/actions/RotateAround.js | src/actions/RotateAround.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var RotateAroundDistance = require('../math/RotateAroundDistance');
var DistanceBetween = require('../math/distance/DistanceBetween');
/**
* R... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/actions/SetOrigin.js | src/actions/SetOrigin.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var PropertyValueSet = require('./PropertyValueSet');
/**
* Takes an array of Game Objects, or any objects that have the public properties `or... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/actions/PlaceOnCircle.js | src/actions/PlaceOnCircle.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* Takes an array of Game Objects and positions them on evenly spaced points around the perimeter of a Circle.
*
* If you wish to pass a `... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/actions/RandomLine.js | src/actions/RandomLine.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Random = require('../geom/line/Random');
/**
* Takes an array of Game Objects and positions them at random locations on the Line.
*
* I... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/actions/SmoothStep.js | src/actions/SmoothStep.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var MathSmoothStep = require('../math/SmoothStep');
/**
* Smoothstep is a sigmoid-like interpolation and clamping function.
*
* The function... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/actions/IncX.js | src/actions/IncX.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var PropertyValueInc = require('./PropertyValueInc');
/**
* Takes an array of Game Objects, or any objects that have a public `x` property,
*... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/actions/ShiftPosition.js | src/actions/ShiftPosition.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Vector2 = require('../math/Vector2');
/**
* Takes an array of items, such as Game Objects, or any objects with public `x` and
* `y` prope... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/actions/PlaceOnRectangle.js | src/actions/PlaceOnRectangle.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var MarchingAnts = require('../geom/rectangle/MarchingAnts');
var RotateLeft = require('../utils/array/RotateLeft');
var RotateRight = require('... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/actions/PlaceOnTriangle.js | src/actions/PlaceOnTriangle.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var BresenhamPoints = require('../geom/line/BresenhamPoints');
/**
* Takes an array of Game Objects and positions them on evenly spaced points... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/actions/IncAlpha.js | src/actions/IncAlpha.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var PropertyValueInc = require('./PropertyValueInc');
/**
* Takes an array of Game Objects, or any objects that have a public `alpha` property... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/actions/Spread.js | src/actions/Spread.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* Takes an array of Game Objects and then modifies their `property` so the value equals, or is incremented, by the
* calculated spread val... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/actions/index.js | src/actions/index.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* @namespace Phaser.Actions
*/
module.exports = {
AlignTo: require('./AlignTo'),
Angle: require('./Angle'),
Call: require('.... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/actions/IncY.js | src/actions/IncY.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var PropertyValueInc = require('./PropertyValueInc');
/**
* Takes an array of Game Objects, or any objects that have a public `y` property,
*... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/actions/PropertyValueInc.js | src/actions/PropertyValueInc.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* Takes an array of Game Objects, or any objects that have a public property as defined in `key`,
* and then adds the given value to it.
... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/actions/GridAlign.js | src/actions/GridAlign.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var AlignIn = require('../display/align/in/QuickSet');
var CONST = require('../display/align/const');
var GetFastValue = require('../utils/objec... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/actions/RandomRectangle.js | src/actions/RandomRectangle.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Random = require('../geom/rectangle/Random');
/**
* Takes an array of Game Objects and positions them at random locations within the Recta... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/actions/SetY.js | src/actions/SetY.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var PropertyValueSet = require('./PropertyValueSet');
/**
* Takes an array of Game Objects, or any objects that have the public property `y`
... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/actions/GetFirst.js | src/actions/GetFirst.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* Takes an array of objects and returns the first element in the array that has properties which match
* all of those specified in the `co... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/actions/ScaleX.js | src/actions/ScaleX.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var PropertyValueInc = require('./PropertyValueInc');
/**
* Takes an array of Game Objects, or any objects that have a public `scaleX` propert... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/actions/SetScaleY.js | src/actions/SetScaleY.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var PropertyValueSet = require('./PropertyValueSet');
/**
* Takes an array of Game Objects, or any objects that have the public property `scal... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/actions/SetScrollFactorY.js | src/actions/SetScrollFactorY.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var PropertyValueSet = require('./PropertyValueSet');
/**
* Takes an array of Game Objects, or any objects that have the public property `scro... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/actions/RandomCircle.js | src/actions/RandomCircle.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Random = require('../geom/circle/Random');
/**
* Takes an array of Game Objects and positions them at random locations within the Circle.
... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/actions/Angle.js | src/actions/Angle.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var PropertyValueInc = require('./PropertyValueInc');
/**
* Takes an array of Game Objects, or any objects that have a public `angle` property... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/actions/PlaceOnEllipse.js | src/actions/PlaceOnEllipse.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* Takes an array of Game Objects and positions them on evenly spaced points around the perimeter of an Ellipse.
*
* If you wish to pass ... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/actions/WrapInRectangle.js | src/actions/WrapInRectangle.js | /**
* @author Richard Davey <rich@phaser.io>
* @author samme <samme.npm@gmail.com>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Wrap = require('../math/Wrap');
/**
* Iterates through the given array and makes sure that ea... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
phaserjs/phaser | https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/actions/ScaleXY.js | src/actions/ScaleXY.js | /**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var PropertyValueInc = require('./PropertyValueInc');
/**
* Takes an array of Game Objects, or any objects that have public `scaleX` and `scal... | javascript | MIT | a9965625f49cf366584f454556b039e06e8adad6 | 2026-01-04T14:59:32.525416Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.