setVertexXY method

void setVertexXY(
  1. int vertex,
  2. num x,
  3. num y
)

Set the XY values of a vertex.

The XY values define the position of the vertex in the local coordinate system of the Display Object.

Implementation

void setVertexXY(int vertex, num x, num y) {
  final offset = vertex << 2;
  vxList[offset + 0] = x.toDouble();
  vxList[offset + 1] = y.toDouble();
}