Interface RectComparisonData

Comparison data between two AABB's.

Hierarchy

  • RectComparisonData

Properties

bottomSpace: number

The distance between the bottom of the AABB and the top of the other AABB

closestXDist: number

The shortest distance between vertical (left/right) edges of the two AABB's.

closestYDist: number

The shortest distance between horizontal (top/bottom) edges of the two AABB's

leftSpace: number

The distance between the left of the AABB and the right of the other AABB

overlapping: boolean

Whether or not the two AABB's intersecting area is positive.

rightSpace: number

The distance between the right of the AABB and the left of the other AABB

topSpace: number

The distance between the top of the AABB and the bottom of the other AABB

xIntersection: boolean

Whether or not the two AABBs are insersecting in the x direction.

yIntersection: boolean

Whether or not the two AABBs are insersecting in the y direction.

Generated using TypeDoc