Spherical class

Constructors

Spherical({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 is 1.0.

Properties

hashCode → int
The hash code for this object.
no setterinherited
phi ↔ double
getter/setter pair
radius ↔ double
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
theta ↔ double
getter/setter pair

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