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

Definition of a ray.

Public Member Functions

procedure get_transformed_ray (ray, transformation, transformed_ray)
 Apply transformation to the ray.
 
pure type(t_ray) function rt_ray_partial_initialization (origin, direction)
 Initialize a ray from origin and direction only.
 

Public Attributes

double precision, dimension(3) origin = 0d0
 Origin of the ray.
 
double precision, dimension(3) direction = 0d0
 Direction of the ray.
 
double precision, dimension(3) inv_direction = 0d0
 Inverse of direction.
 
integer, dimension(3) sign_inv_direction = 1
 Sign of the inverse direction.
 

Member Function/Subroutine Documentation

◆ get_transformed_ray()

procedure mod_ray_tracing::t_ray::get_transformed_ray ( class(t_ray), intent(in) ray,
type(t_cg_transformation), intent(in) transformation,
type(t_ray), intent(out) transformed_ray )
Parameters
[in]rayRay in the original frame (input)
[in]transformationtransformation.
[out]transformed_rayray in the transformed frame.

◆ rt_ray_partial_initialization()

pure type(t_ray) function mod_ray_tracing::t_ray::rt_ray_partial_initialization ( double precision, dimension(3), intent(in) origin,
double precision, dimension(3), intent(in) direction )
Parameters
[in]originOrigin of the ray
[in]directionDirection of the ray
Returns
Initialized ray

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