Checks for intersection between Rectangle shape and Triangle shape, and returns the intersection points as a Point object array.
name | type | arguments | description |
---|---|---|---|
rect | Phaser.Geom.Rectangle |
Rectangle object to test. |
|
triangle | Phaser.Geom.Triangle |
Triangle object to test. |
|
out | array | <optional> |
An optional array in which to store the points of intersection. |
An array with the points of intersection if objects intersect, otherwise an empty array.