@awayjs/renderer
Version:
Renderer for AwayJS
11 lines • 1.12 kB
TypeScript
import { Matrix3D, Vector3D, Box, Sphere, Rectangle, Matrix } from '@awayjs/core';
import { AttributesView, Short2Attributes } from '@awayjs/stage';
import { TriangleElements } from '../elements/TriangleElements';
export declare class TriangleElementsUtils {
static hitTest(x: number, y: number, _z: number, box: Box, triangleElements: TriangleElements, count: number, offset?: number): boolean;
static getBoxBounds(positionAttributes: AttributesView, indexAttributes: Short2Attributes, matrix3D: Matrix3D, cache: Box, target: Box, count: number, offset?: number): Box;
static getSphereBounds(positionAttributes: AttributesView, center: Vector3D, _matrix3D: Matrix3D, _cache: Sphere, output: Sphere, count: number, offset?: number): Sphere;
static prepareScale9(elem: TriangleElements, bounds: Rectangle, grid: Rectangle, copy: boolean, emitUV?: boolean, uvMatrix?: Matrix): TriangleElements;
static updateScale9(elem: TriangleElements, originalRect: Rectangle, scaleX: number, scaleY: number, init?: boolean, copy?: boolean): TriangleElements;
}
//# sourceMappingURL=TriangleElementsUtils.d.ts.map