videx-3d
Version:
React 3D component library designed for sub surface visualizations in the browser
12 lines (11 loc) • 597 B
TypeScript
import { PerspectiveCamera } from 'three';
import { Vec2, Vec3 } from '../../sdk';
export declare const labelAngles: number[];
/**
* 0 = [-] annotation is pointing approx. horizontally
* 1 = [/] annotation is pointing approx. diagonally (from lower left to upper right)
* 2 = [|] annotation is pointing approx. vertically
* 3 = [\] annotation is pointing approx. diagonally (from upper left to lower right)
*/
export declare const labelAnglesMap: number[][];
export declare const getLabelQuadrant: (originScreen: Vec2, origin3d: Vec3, direction3d: Vec3, camera: PerspectiveCamera) => number;