computeWorldVertices method

List<double> computeWorldVertices(
  1. Slot slot
)

Transforms and returns the attachment's four vertices to world coordinates. If the attachment has a Sequence, the region may be changed.

See World transforms in the Spine Runtimes Guide.

Implementation

List<double> computeWorldVertices(Slot slot) {
  Pointer<Float> vertices = _allocator.allocate(4 * 8).cast();
  _bindings.spine_region_attachment_compute_world_vertices(_attachment, slot._slot, vertices);
  final result = vertices.asTypedList(8).toList();
  _allocator.free(vertices);
  return result;
}