You’re reading the docs for Phaser v3.88.2. The latest is Phaser v4.1.0.

Types.Math

Phaser.Types.Math

RectangleLike

staticRectangleLike

nametypeoptionaldescription
xnumberNoThe x component.
ynumberNoThe y component.
widthnumberNoThe width component.
heightnumberNoThe height component.

Type: object

Member of: Phaser.Types.Math

Source: src/math/typedefs/RectangleLike.js#L1
Since: 3.80.0


SinCosTable

staticSinCosTable

nametypeoptionaldescription
sinnumberNoThe sine value.
cosnumberNoThe cosine value.
lengthnumberNoThe length.

Type: object

Member of: Phaser.Types.Math

Source: src/math/typedefs/SinCosTable.js#L1
Since: 3.0.0


Vector2Like

staticVector2Like

nametypeoptionaldescription
xnumberNoThe x component.
ynumberNoThe y component.

Type: object

Member of: Phaser.Types.Math

Source: src/math/typedefs/Vector2Like.js#L1
Since: 3.0.0


Vector3Like

staticVector3Like

nametypeoptionaldescription
xnumberYesThe x component.
ynumberYesThe y component.
znumberYesThe z component.

Type: object

Member of: Phaser.Types.Math

Source: src/math/typedefs/Vector3Like.js#L1
Since: 3.50.0


Vector4Like

staticVector4Like

nametypeoptionaldescription
xnumberYesThe x component.
ynumberYesThe y component.
znumberYesThe z component.
wnumberYesThe w component.

Type: object

Member of: Phaser.Types.Math

Source: src/math/typedefs/Vector4Like.js#L1
Since: 3.50.0