containsPoint2 method

BoundingBoxAttachment? containsPoint2(
  1. double x,
  2. double y
)

Returns the first bounding box attachment that contains the point, or null. When doing many checks, it is usually more efficient to only call this method if aabbContainsPoint(float, float) returns true.

Implementation

BoundingBoxAttachment? containsPoint2(double x, double y) {
  final result = SpineBindings.bindings.spine_skeleton_bounds_contains_point_2(_ptr, x, y);
  return result.address == 0 ? null : BoundingBoxAttachment.fromPointer(result);
}