PolygonPolygonIntersections class
- Inheritance
-
- Object
- Intersections<
PolygonComponent, PolygonComponent> - PolygonPolygonIntersections
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
intersect(
PolygonComponent polygonA, PolygonComponent polygonB, {Rect? overlappingRect}) → Set< Vector2> -
Returns the intersection points of
polygonA
andpolygonB
The two polygons are required to be convex If they share a segment of a line, both end points and the center point of that line segment will be counted as collision pointsoverride -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
supportsShapes(
ShapeComponent shapeA, ShapeComponent shapeB) → bool -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
unorderedIntersect(
ShapeComponent shapeA, ShapeComponent shapeB) → Set< Vector2> -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited