Skip to content

Corner

Defined in: packages/isaacscript-common/src/interfaces/Corner.ts:8

An interface representing a corner in the room.

This is used by the getRoomShapeCorners helper function.

readonly type: CornerType

Defined in: packages/isaacscript-common/src/interfaces/Corner.ts:9

readonly gridIndex: int

Defined in: packages/isaacscript-common/src/interfaces/Corner.ts:12

The grid index of the corresponding wall tile.

readonly position: Readonly<Vector>

Defined in: packages/isaacscript-common/src/interfaces/Corner.ts:19

The position is not the same as the center of the corresponding grid index. Rather, it is the exact position of the corner, which will be offset from the grid index position by half of a grid tile.