December 2024 M T W T F S S 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Tag Archives: rectangle
Rectangle class, equals method returns incorrect value
Hi, recently I’ve used Rectangle’s equals() method and found that it incorrectly returns false when both rectangles are the same. Problem occurs when any of the properties of the Rectangle are NaN (not a number).
Posted in actionscript, bugs, flash
Tagged actionscript3, equals, NaN, rectangle, snippets
1 Comment
Rectangle with “sorted” edges
In some situation you would like to reassure that given Rectangle object have “top-down, left-right” order you can do it using following two snippets this creates “normalized” copy of the given rectangle this modifies given rectangle directly
Posted in actionscript, flash
Tagged actionscript3, rectangle, snippets
Comments Off on Rectangle with “sorted” edges