Spherical constructor
radius
- the radius, or the
Euclidean distance
(straight-line distance) from the point to the origin. Default is
1.0
.
phi
- polar angle in radians from the y (up) axis. Default is
0
.
theta
- equator angle in radians around the y (up) axis.
Default is 0
.
The poles (phi) are at the positive and negative y axis. The equator (theta) starts at positive z.
Implementation
Spherical({this.radius = 1, this.phi = 0, this.theta = 0});