bounds property

Bounds get bounds

Get the axis-aligned bounding box (AABB) containing all world vertices of the skeleton

Implementation

Bounds get bounds {
  final output = ArrayFloat();
  SpineBindings.bindings.spine_skeleton_get_bounds(nativePtr.cast(), output.nativePtr.cast());
  final bounds = Bounds(
    x: output[0],
    y: output[1],
    width: output[2],
    height: output[3],
  );
  output.dispose();
  return bounds;
}