MCPcopy
hub / github.com/mrdoob/three.js / setFromVector3

Method setFromVector3

src/math/Spherical.js:100–104  ·  view source on GitHub ↗

* Sets the spherical components from the given vector which is assumed to hold * Cartesian coordinates. * * @param {Vector3} v - The vector to set. * @return {Spherical} A reference to this spherical.

( v )

Source from the content-addressed store, hash-verified

98 * @return {Spherical} A reference to this spherical.
99 */
100 setFromVector3( v ) {
101
102 return this.setFromCartesianCoords( v.x, v.y, v.z );
103
104 }
105
106 /**
107 * Sets the spherical components from the given Cartesian coordinates.

Callers 1

constructorMethod · 0.95

Calls 1

Tested by

no test coverage detected