@irysius/grid-math
Version:
Tools to assist with grid math and algorithms
18 lines • 573 B
TypeScript
declare module "@irysius/grid-math/Gravity" {
export enum Gravity {
Center = 0,
North = 1,
South = 2,
East = 4,
West = 8,
NorthEast = 5,
NorthWest = 9,
SouthEast = 6,
SouthWest = 10,
}
export function hasGravity(value: Gravity, targetGravity: Gravity): boolean;
export function gravityToString(value: Gravity): string;
export function northOrSouth(gravity: Gravity): Gravity;
export function eastOrWest(gravity: Gravity): Gravity;
export default Gravity;
}