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

Method setZ

src/math/Vector3.js:146–152  ·  view source on GitHub ↗

* Sets the vector's z component to the given value. * * @param {number} z - The value to set. * @return {Vector3} A reference to this vector.

( z )

Source from the content-addressed store, hash-verified

144 * @return {Vector3} A reference to this vector.
145 */
146 setZ( z ) {
147
148 this.z = z;
149
150 return this;
151
152 }
153
154 /**
155 * Allows to set a vector component with an index.

Callers 10

computeBoundsFunction · 0.95
Vector3.tests.jsFile · 0.45
Vector4.tests.jsFile · 0.45
updateMethod · 0.45
sortInstancedMeshFunction · 0.45
deinterleaveAttributeFunction · 0.45
processMeshAsyncMethod · 0.45
unprojectOnTbSurfaceMethod · 0.45
loadAccessorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected