@spearwolf/twopoint5d
Version:
a library to create 2.5d realtime graphics and pixelart with three.js
30 lines • 963 B
TypeScript
export declare class TextureCoords {
static readonly FLIP_HORIZONTAL = 1;
static readonly FLIP_VERTICAL = 2;
static readonly FLIP_DIAGONAL = 4;
x: number;
y: number;
width: number;
height: number;
flip: number;
parent?: TextureCoords;
constructor(...args: [] | [parent: TextureCoords, x?: number, y?: number, width?: number, height?: number] | [x?: number, y?: number, width?: number, height?: number]);
clone(): TextureCoords;
get root(): TextureCoords | undefined;
get flipH(): boolean;
set flipH(flip: boolean);
get flipV(): boolean;
set flipV(flip: boolean);
get flipD(): boolean;
set flipD(flip: boolean);
flipHorizontal(): TextureCoords;
flipVertical(): TextureCoords;
flipDiagonal(): TextureCoords;
get s(): number;
get t(): number;
get s1(): number;
get t1(): number;
get u(): number;
get v(): number;
}
//# sourceMappingURL=TextureCoords.d.ts.map