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

Method set

src/math/Ray.js:47–54  ·  view source on GitHub ↗

* Sets the ray's components by copying the given values. * * @param {Vector3} origin - The origin. * @param {Vector3} direction - The direction. * @return {Ray} A reference to this ray.

( origin, direction )

Source from the content-addressed store, hash-verified

45 * @return {Ray} A reference to this ray.
46 */
47 set( origin, direction ) {
48
49 this.origin.copy( origin );
50 this.direction.copy( direction );
51
52 return this;
53
54 }
55
56 /**
57 * Copies the values of the given ray to this instance.

Callers 15

buildMainNavFunction · 0.45
pushNavItemFunction · 0.45
Mesh.tests.jsFile · 0.45
Layers.tests.jsFile · 0.45
getObjectsToCheckFunction · 0.45
Raycaster.tests.jsFile · 0.45
Object3D.tests.jsFile · 0.45

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected