* 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 )
| 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. |
no test coverage detected