Returns the magnitude of a vec4
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(vec4), | intent(in) | :: | this |
type(vec4) pure elemental function magnitude_fn(this) !! Returns the magnitude of a vec4 class(vec4), intent(in) :: this magnitude_fn = this / this%length() end function magnitude_fn