0
如何知道某個點是否包含在Flex中的Sprite中?Point屬於Flex中的Sprite
例如:
// My example point
var A:Point = new Point(5,5);
// My example sprite
var s:Sprite = new Sprite();
s.graphics.lineStyle(1,0x000000,1);
s.graphics.moveTo(0,0);
s.graphics.lineTo(100,100);
點A
屬於精靈s
,因爲它的位置是在它的內部。有什麼功能可以知道嗎?
我想要對所有種類的精靈都這樣做,所以使用數學公式來計算線性或二次方程(線,圓,矩形等)對我來說是無效的。
在此先感謝
@sch裏面的線 – 2012-03-08 19:16:59