three
Version:
JavaScript 3D library
16 lines (12 loc) • 354 B
TypeScript
import { Vector3 } from './Vector3';
export class Spherical {
constructor(radius?: number, phi?: number, theta?: number);
radius: number;
phi: number;
theta: number;
set(radius: number, phi: number, theta: number): Spherical;
clone(): this;
copy(other: Spherical): this;
makeSafe(): void;
setFromVector3(vec3: Vector3): Spherical;
}