Get the upper, bottom, rightmost and leftmost point of a pixel-perfect BitmapData collision
问题 How can I get the upper, bottom, rightmost and leftmost point of a pixel-perfect BitmapData collision? This is my collision-detection code: public static function checkCollision(object1:*, object2:*, debug:Boolean = false):Boolean{ var object1Rect:Rectangle = object1.getRect(stage); var object2Rect:Rectangle = object2.getRect(stage); var object1Point:Point = new Point(object1Rect.x, object1Rect.y); var object2Point:Point = new Point(object2Rect.x, object2Rect.y); var bitmapData1:BitmapData =