quat_t Derived Type

type, public :: quat_t

Hamilton's quaternion extension to complex numbers



Components

TypeVisibility AttributesNameInitial
real(kind=wp), public :: s =0.0_wp

Scalar part

real(kind=wp), public, dimension(3):: v =0.0_wp

Vector part


Constructor

public interface quat_t

  • private function newQuat(r, v) result(self)

    Arguments

    Type IntentOptional AttributesName
    real(kind=wp), intent(in) :: r
    real(kind=wp), intent(in), dimension(3):: v

    Return Value type(quat_t)


Type-Bound Procedures

procedure, public :: getRotationMatrix

  • private function getRotationMatrix(self) result(o)

    Arguments

    Type IntentOptional AttributesName
    class(quat_t), intent(in) :: self

    Return Value real(kind=wp), dimension(3,3)