@zxh19890103/wik
Version:
The world-class JavaScript library for building large-scale digital warehouse both on 2D and 3D.
16 lines (15 loc) • 500 B
TypeScript
/**
* generate 4 vertices to represent a retangle on z, and be pendicular to the XY plane.
*
* left-bottom -> right-bottom -> right-top -> left-top
*
* @param halfX half of size on X axe
* @param halfY half of size on Y axe
* @param z z
* @returns
*/
export declare const generateRetangle: (halfX: number, halfY: number, z?: number) => number[];
export declare const generatePlane: (l: number, w: number, axe: 'x' | 'y' | 'z', dir: 1 | -1) => {
vertices: any[];
normal: number[];
};