UNPKG

@3dverse/livelink-camera-controls

Version:

A camera control for three.js, similar to THREE.OrbitControls yet supports smooth transitions and more features.

14 lines (13 loc) 1.1 kB
import * as _THREE from 'threejs-math'; import { Ref } from '../types'; import { Camera } from './Camera'; export declare const DEG2RAD: number; export declare function clamp(value: number, min: number, max: number): number; export declare function approxZero(number: number, error?: number): boolean; export declare function approxEquals(a: number, b: number, error?: number): boolean; export declare function roundToStep(value: number, step: number): number; export declare function infinityToMaxNumber(value: number): number; export declare function maxNumberToInfinity(value: number): number; export declare function unproject(vec: _THREE.Vector3, camera: Camera): _THREE.Vector3; export declare function smoothDamp(current: number, target: number, currentVelocityRef: Ref, smoothTime: number, maxSpeed: number | undefined, deltaTime: number): number; export declare function smoothDampVec3(current: _THREE.Vector3, target: _THREE.Vector3, currentVelocityRef: _THREE.Vector3, smoothTime: number, maxSpeed: number | undefined, deltaTime: number, out: _THREE.Vector3): _THREE.Vector3;