version 0.6.0
Loading...
Searching...
No Matches
mod_ray_tracing::t_intersection Type Reference

Definition of an intersection.

Public Member Functions

procedure apply_transformation (intersection, transformation, ray, has_normal)
 Apply transformation and compute the distance.
 
pure type(t_intersection) function rt_intersection_partial_initialization (point, distance)
 Initialize an interface from point and distance only.
 
pure type(t_intersection) function rt_intersection_partial_initialization_no_tag (point, distance, normal)
 Initialize an interface from point and distance only.
 

Public Attributes

double precision, dimension(3) point = 0d0
 Intersection point.
 
double precision distance = 0d0
 Distance from the origin of the ray to the intersection point.
 
double precision, dimension(3) normal = 0d0
 Normal to the interface at the intersection point.
 
integer tag = 0
 Tag.
 

Member Function/Subroutine Documentation

◆ apply_transformation()

procedure mod_ray_tracing::t_intersection::apply_transformation ( class(t_intersection), intent(inout) intersection,
type(t_cg_transformation), intent(in) transformation,
type(t_ray), intent(in) ray,
logical, intent(in) has_normal )
Parameters
[in,out]intersectionIntersection.
[in]transformationtransformation.
[in]rayray in the original frame.
[in]has_normalApply transformation to the normal.

◆ rt_intersection_partial_initialization()

pure type(t_intersection) function mod_ray_tracing::t_intersection::rt_intersection_partial_initialization ( double precision, dimension(3), intent(in) point,
double precision, intent(in) distance )

The normal vector is set to null vector.

Parameters
[in]pointIntersection point
[in]distanceIntersection distance
Returns
Initialized intersection

◆ rt_intersection_partial_initialization_no_tag()

pure type(t_intersection) function mod_ray_tracing::t_intersection::rt_intersection_partial_initialization_no_tag ( double precision, dimension(3), intent(in) point,
double precision, intent(in) distance,
double precision, dimension(3), intent(in) normal )

The normal vector is set to null vector.

Parameters
[in]pointIntersection point
[in]distanceIntersection distance
[in]normalNormal vector at the intersection point
Returns
Initialized intersection

The documentation for this type was generated from the following file: