Spherical class
A point's spherical coordinates.
Constructors
- Spherical.new({double radius = 1, double phi = 0, double theta = 0})
-
radius
- the radius, or the Euclidean distance (straight-line distance) from the point to the origin. Default is1.0
.
Properties
Methods
-
clone(
) → Spherical - Returns a new spherical with the same radius, phi and theta properties as this one.
-
copy(
Spherical other) → Spherical - Copies the values of the passed Spherical's radius, phi and theta properties to this spherical.
-
makeSafe(
) → Spherical - Restricts the polar angle phi to be between 0.000001 and pi - 0.000001.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set(
double radius, double phi, double theta) → Spherical -
setFromCartesianCoords(
double x, double y, double z) → Spherical - Sets values of this spherical's radius, phi and theta properties from Cartesian coordinates.
-
setFromVector3(
Vector3 v) → Spherical -
Sets values of this spherical's radius, phi and
theta properties from the
Vector3
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited