copy method

Ray copy(
  1. Ray ray
)

Copies all values from the given ray to this ray.

Implementation

Ray copy( Ray ray ) {
	origin.copy( ray.origin );
	direction.copy( ray.direction );

	return this;
}