StandardIntersectionEngine class final

Inheritance

Constructors

StandardIntersectionEngine()
const

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

circleCircle(Vector2 centerA, double radiusA, Vector2 centerB, double radiusB) → bool
Returns true if two circles overlap.
override
circleRectangle(Vector2 circleCenter, double radius, Vector2 rectCenter, Vector2 ex, Vector2 ey) → bool
Returns true if a circle at circleCenter with radius overlaps a rectangle centered at rectCenter, described by extents ex/ey.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rectangleRectangle(Vector2 centerA, Vector2 exA, Vector2 eyA, Vector2 centerB, Vector2 exB, Vector2 eyB) → bool
Returns true if two rectangles overlap, given their world-space centers and, for each, the vectors from its center to the midpoints of its right (exA/exB) and bottom (eyA/eyB) edges.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

sat(Vector2 delta, Vector2 axis, Vector2 exA, Vector2 eyA, Vector2 exB, Vector2 eyB) → bool
Returns true if axis separates a rectangle described by exA/eyA, centered delta away from a rectangle described by exB/eyB.