hit_info Derived Type

type, public :: hit_info

衝突有無、命中要素番号、線分パラメータ、交点座標を返す衝突結果型。


Components

Type Visibility Attributes Name Initial
logical, public :: has_hit = .false.
integer(kind=i32), public :: elem_idx = -1
real(kind=dp), public :: t = 0.0d0
real(kind=dp), public :: pos(3) = 0.0d0
integer(kind=i32), public :: image_shift(2) = 0_i32
real(kind=dp), public :: pos_wrapped(3) = 0.0d0

Source Code

  type :: hit_info
    logical :: has_hit = .false.
    integer(i32) :: elem_idx = -1
    real(dp) :: t = 0.0d0
    real(dp) :: pos(3) = 0.0d0
    integer(i32) :: image_shift(2) = 0_i32
    real(dp) :: pos_wrapped(3) = 0.0d0
  end type hit_info