Spherical
new Spherical(radius?, phi?, theta?)THREE equivalent: THREE.Spherical
Spherical coordinate representation. Used by OrbitControls for camera positioning.
Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
radius |
number |
Radial distance. |
phi |
number |
Polar angle from Y axis in radians. |
theta |
number |
Azimuthal angle around Y axis in radians. |
Methods
Section titled “Methods”| Method | Description |
|---|---|
set(radius: number, phi: number, theta: number): this |
Sets all three components. |
setFromVector3(v: Vector3): this |
Converts a Cartesian Vector3 to spherical coordinates. |
makeSafe(): this |
Clamps phi to avoid gimbal-lock singularities at the poles. |
clone(): Spherical |
Returns a new Spherical with the same values. |