UNPKG

videx-3d

Version:

React 3D component library designed for sub surface visualizations in the browser

13 lines (12 loc) 445 B
import { Vec2 } from '../types/common'; export declare const PI: number; export declare const TAU: number; export declare const PI2: number; export declare const PI4: number; export declare const PI8: number; /** * Given a 2D rectangle and an angle off the center, find the point * of the closest corner. Used for anchoring connector lines * to annotation labels. */ export declare function edgeOfRectangle(rect: Vec2, theta: number): Vec2;