equals method

bool equals(
  1. Ray ray
)

Returns true if the given ray is deep equal with this ray.

Implementation

bool equals(Ray ray ) {
	return ray.origin.equals( origin ) && ray.direction.equals( direction );
}