@hiddentao/clockwork-engine
Version:
A TypeScript/PIXI.js game engine for deterministic, replayable games with built-in rendering
29 lines • 607 B
TypeScript
/**
* Bounds Calculation Utilities
*
* Shared functions for calculating bounds with anchor offsets.
*/
/**
* Calculate bounds with anchor offset
*
* @param position Object position
* @param size Object size
* @param anchor Anchor point (0-1 normalized)
* @returns Bounding rectangle
*/
export declare function calculateBoundsWithAnchor(position: {
x: number;
y: number;
}, size: {
width: number;
height: number;
}, anchor: {
x: number;
y: number;
}): {
x: number;
y: number;
width: number;
height: number;
};
//# sourceMappingURL=boundsCalculation.d.ts.map