Phaser API Documentation

  Version: 
resize(x, y, width, height, originX, originY)

Description:

Resizes this Vertex by setting the x and y coordinates, then transforms this vertex by an identity matrix and dimensions, storing the results in vx, vy and vz.

Parameters:

name type description
x number

The x position of the vertex.

y number

The y position of the vertex.

width number

The width of the parent Mesh.

height number

The height of the parent Mesh.

originX number

The originX of the parent Mesh.

originY number

The originY of the parent Mesh.

Returns:
Description:

This Vertex.

Since: 3.60.0
Source: src/geom/mesh/Vertex.js (Line 298)