@types/three
Version:
TypeScript definitions for three
28 lines (22 loc) • 533 B
TypeScript
import { Vector3 } from "./Vector3.js";
export class Spherical {
constructor(radius?: number, phi?: number, theta?: number);
/**
* @default 1
*/
radius: number;
/**
* @default 0
*/
phi: number;
/**
* @default 0
*/
theta: number;
set(radius: number, phi: number, theta: number): this;
clone(): this;
copy(other: Spherical): this;
makeSafe(): this;
setFromVector3(v: Vector3): this;
setFromCartesianCoords(x: number, y: number, z: number): this;
}