Skip to content

Commit 27eafe3

Browse files
committed
New Face and Vertex typedefs
1 parent 977054a commit 27eafe3

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

src/gameobjects/typedefs/Face.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**
2+
* @typedef {object} Phaser.Types.GameObjects.Face
3+
* @since 3.50.0
4+
*
5+
* @property {Phaser.Types.GameObjects.Vertex} vertex1 - The first face vertex.
6+
* @property {Phaser.Types.GameObjects.Vertex} vertex2 - The second face vertex.
7+
* @property {Phaser.Types.GameObjects.Vertex} vertex3 - The third face vertex.
8+
* @property {boolean} isCounterClockwise - Are the vertices counter-clockwise?
9+
*/

src/gameobjects/typedefs/Vertex.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* @typedef {object} Phaser.Types.GameObjects.Vertex
3+
* @since 3.50.0
4+
*
5+
* @property {number} x - The x coordinate of the vertex.
6+
* @property {number} y - The y coordinate of the vertex.
7+
* @property {number} z - The z coordinate of the vertex.
8+
* @property {number} normalX - The x normal of the vertex.
9+
* @property {number} normalY - The y normal of the vertex.
10+
* @property {number} normalZ - The z normal of the vertex.
11+
* @property {number} u - UV u texture coordinate of the vertex.
12+
* @property {number} v - UV v texture coordinate of the vertex.
13+
* @property {number} alpha - The alpha value of the vertex.
14+
*/

0 commit comments

Comments
 (0)