Spherical
A spherical coordinate system.
For details see: https://en.wikipedia.org/wiki/Spherical_coordinate_system
The poles (phi) are at the positive and negative Y-axis. The equator starts at positive Z.
Constructor Summary
Public Constructor | ||
public |
constructor(radius: Number, phi: Number, theta: Number) Constructs a new spherical system. |
Member Summary
Public Members | ||
public |
The polar angle, up and down towards the top and bottom pole. |
|
public |
The radius of the sphere. |
|
public |
The angle around the equator of the sphere. |
Method Summary
Public Methods | ||
public |
Clones this spherical system. |
|
public |
Copies the values of the given spherical system. |
|
public |
Restricts phi to |
|
public |
Sets the values of this spherical system. |
|
public |
setFromCartesianCoords(x: Number, y: Number, z: Number): Spherical Sets the values of this spherical system based on cartesian coordinates. |
|
public |
Sets the values of this spherical system based on a vector. |
Public Constructors
Public Members
Public Methods
public copy(s: Spherical): Spherical source
Copies the values of the given spherical system.
Params:
Name | Type | Attribute | Description |
s | Spherical | A spherical system. |
public set(radius: Number, phi: Number, theta: Number): Spherical source
Sets the values of this spherical system.
public setFromCartesianCoords(x: Number, y: Number, z: Number): Spherical source
Sets the values of this spherical system based on cartesian coordinates.