@spearwolf/twopoint5d
Version:
Create 2.5D realtime graphics and pixelart with WebGL and three.js
18 lines • 914 B
TypeScript
import type { Object3D } from 'three/webgpu';
import { Plane as THREE_Plane, Vector3 } from 'three/webgpu';
export type ProjectionPlaneDescription = 'xy|bottom-left' | 'xy|top-left' | 'xz|bottom-left' | 'xz|top-left';
export declare class ProjectionPlane {
plane: THREE_Plane;
up: Vector3;
constructor(planeDescription: ProjectionPlaneDescription | THREE_Plane, up?: Vector3);
static get(plane: ProjectionPlane | ProjectionPlaneDescription): ProjectionPlane;
clone(): ProjectionPlane;
equals(projectionPlane: ProjectionPlane): boolean;
applyRotation(obj3d: Object3D): void;
getPointByDistance(distanceToPlane: number, target?: Vector3): Vector3;
getOrigin(target?: Vector3): Vector3;
getForward(target?: Vector3): Vector3;
getRight(target?: Vector3): Vector3;
getPoint(x: number, y: number, target?: Vector3): Vector3;
}
//# sourceMappingURL=ProjectionPlane.d.ts.map