magnitude_fn Function

private pure elemental function magnitude_fn(this)

Returns the magnitude of a vec4

Type Bound

vec4

Arguments

Type IntentOptional Attributes Name
class(vec4), intent(in) :: this

Return Value type(vec4)


Source Code

        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