private HitRecord getHitRecord(Vector3D start, Vector3D direction,
			double tmin, double tmax) {
		HitRecord record = null;
		for (Triangle triangle : scene.getTriangleList()) {
			if (triangle.hit(start, direction, tmin, tmax) == true) {
				HitRecord hitRecord = triangle.hitNearestPoint(start,
						direction, tmin, tmax);
				if (record == null)
					record = hitRecord;
				else if (hitRecord.getDistance() < record.getDistance())
					record = hitRecord;
			}
		}
		return record;
	}