IGMBaseLib 1.0
|
This module provides elementary linear algebra subroutines that perform the vector and matrix operations. More...
Functions/Subroutines | |
real(DP), dimension(3), public | rotateX (vec, angle) |
Rotates a vector around X-axis (in Cartesian coordinate system) the amount specified by the angle parameter. | |
real(DP), dimension(3), public | rotateY (vec, angle) |
Rotates a vector around Y-axis (in Cartesian coordinate system) the amount specified by the angle parameter. | |
real(DP), dimension(3), public | rotateZ (vec, angle) |
Rotates a vector around Z-axis (in Cartesian coordinate system) the amount specified by the angle parameter. | |
real(DP), public | vec_length (vec) |
Gets the length of a vector. | |
subroutine, public | vec_normarize (vec) |
Normalizes the specified vector. | |
real(DP), dimension(3), public | cross (v1, v2) |
Calculates the cross product of vectors and . | |
real(DP), public | dot (v1, v2) |
Calculates the dot product of vectors and . |
This module provides elementary linear algebra subroutines that perform the vector and matrix operations.
Copyright (C) GFD Dennou Club, 2011-2012. All rights reserved.
license ??
real(DP),dimension(3),public igmcore_linear_algebra::cross | ( | real(DP),dimension(3),intent(in) | v1, |
real(DP),dimension(3),intent(in) | v2 | ||
) |
Calculates the cross product of vectors and .
[in] | v1 | Vector . |
[in] | v2 | Vector . |
Definition at line 215 of file igmcore_linear_algebra.f90.
real(DP),public igmcore_linear_algebra::dot | ( | real(DP),dimension(3),intent(in) | v1, |
real(DP),dimension(3),intent(in) | v2 | ||
) |
Calculates the dot product of vectors and .
[in] | v1 | Vector . |
[in] | v2 | Vector . |
Definition at line 248 of file igmcore_linear_algebra.f90.
real(DP),dimension(3),public igmcore_linear_algebra::rotateX | ( | real(DP),dimension(3),intent(in) | vec, |
real(DP),intent(in) | angle | ||
) |
Rotates a vector around X-axis (in Cartesian coordinate system) the amount specified by the angle parameter.
[in] | vec | A vector on acted by rotation matrix R . |
[in] | angle | Rotation angle specified in radians. |
Definition at line 51 of file igmcore_linear_algebra.f90.
real(DP),dimension(3),public igmcore_linear_algebra::rotateY | ( | real(DP),dimension(3),intent(in) | vec, |
real(DP),intent(in) | angle | ||
) |
Rotates a vector around Y-axis (in Cartesian coordinate system) the amount specified by the angle parameter.
[in] | vec | A vector on acted by rotation matrix R . |
[in] | angle | Rotation angle specified in radians. |
Definition at line 86 of file igmcore_linear_algebra.f90.
real(DP),dimension(3),public igmcore_linear_algebra::rotateZ | ( | real(DP),dimension(3),intent(in) | vec, |
real(DP),intent(in) | angle | ||
) |
Rotates a vector around Z-axis (in Cartesian coordinate system) the amount specified by the angle parameter.
[in] | vec | A vector on acted by rotation matrix R . |
[in] | angle | Rotation angle specified in radians. |
Definition at line 122 of file igmcore_linear_algebra.f90.
real(DP),public igmcore_linear_algebra::vec_length | ( | real(DP),dimension(3),intent(in) | vec | ) |
Gets the length of a vector.
[in] | vec | A vector. |
Definition at line 157 of file igmcore_linear_algebra.f90.
subroutine,public igmcore_linear_algebra::vec_normarize | ( | real(DP),dimension(3),intent(inout) | vec | ) |
Normalizes the specified vector.
[in,out] | vec | The vector that will normarize. |
Definition at line 185 of file igmcore_linear_algebra.f90.