Skip to main content

Corner

An interface representing a corner in the room.

This is used by the getRoomShapeCorners helper function.

Properties

type

Readonly type: CornerType

Defined in

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


gridIndex

Readonly gridIndex: int

The grid index of the corresponding wall tile.

Defined in

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


position

Readonly position: Readonly<Vector>

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.

Defined in

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