Threepp.Spherical¶
Spherical coordinates class
Members¶
Constructors¶
Properties¶
Methods¶
Spherical¶
Constructor
Arguments
| Arguments | Default | Description |
|---|---|---|
radius |
1 |
Radius. |
phi |
0 |
Polar angle (radians). |
theta |
0 |
Azimuthal angle (radians). |
Description
Constructor
radius¶
Property \ Access: r/w
Description
Radius
phi¶
Property \ Access: r/w
Description
Polar angle
theta¶
Property \ Access: r/w
Description
Azimuthal angle
set¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
radius |
|
|
phi |
|
|
theta |
|
Description
Sets the values
clone¶
Method
Description
Clones the object
copy¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
s |
|
Description
Copies another object
makeSafe¶
Method
Description
Clamps the values to a safe range
setFromVector3¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
v |
|
Description
Sets the values from a Vector3
setFromCartesianCoords¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
x |
|
|
y |
|
|
z |
|
Description
Sets the values from Cartesian coordinates