vec3 + vec3
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(vector), | intent(in) | :: | a |
Input vector |
||
type(vector), | intent(in) | :: | b |
Vec3 to add |
type(vector) pure elemental function vec_add_vec(a, b) !! vec3 + vec3 !> Input vector class(vector), intent(IN) :: a !> Vec3 to add type(vector), intent(IN) :: b vec_add_vec = vector(a%x + b%x, a%y + b%y, a%z + b%z) end function vec_add_vec