<commit_before>/**
 *
 */
package org.jmist.framework;

import org.jmist.toolkit.*;

/**
 * @author bkimmel
 *
 */
public interface Intersection extends SurfacePoint {

	/**
	 * Gets the ray that was used to obtain the intersection.
	 * @return The ray that was used to obtain the intersection.
	 */
	Ray3 ray();

	/**
	 * Gets the distance from the ray origin to the intersection
	 * point, divided by the length of the ray direction.
	 * @return The distance from the ray origin to the intersection
	 * 		divided by the length of the ray direction.
	 */
	double rayParameter();

}<commit_msg>Refactored Intersection interface.<commit_after>/**
 *
 */
package org.jmist.framework;

import org.jmist.toolkit.*;

/**
 * @author bkimmel
 *
 */
public interface Intersection extends SurfacePoint {

	/**
	 * Gets the incident direction.
	 * @return The incident direction.
	 */
	Vector3 incident();

	/**
	 * Gets the distance from the ray origin to the intersection
	 * point.
	 * @return The distance from the ray origin to the intersection.
	 */
	double distance();

	/**
	 * Indicates whether the incident ray approaches the interface from the
	 * front (the side toward which the normal points).
	 * @return A value indicating whether the ray approaches the interface
	 * 		from the front.
	 */
	boolean front();

}
{'fraction_non_alphanumeric': 0.09719058466211086, 'fraction_numerical': 0.0015186028853454822, 'mean_word_length': 3.2931596091205213, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3094316', 'n_tokens_mistral': 382, 'n_tokens_neox': 347, 'n_words': 153}