MGIS 3.1.0
Loading...
Searching...
No Matches
RotationMatrix.ixx File Reference

Namespaces

namespace  mgis
 the namespace mgis encloses all the MGIS project.

Functions

std::array< mgis::real, 9u > mgis::behaviour::buildRotationMatrix (const std::span< const mgis::real, 2u > &)
 an helper function to build a 2D rotation matrix for an in-plane unit vector.
std::array< mgis::real, 9u > mgis::behaviour::buildRotationMatrix (const std::span< const mgis::real, 3u > &, const std::span< const mgis::real, 3u > &)
 an helper function to build a 3D rotation matrix from the first two material axes.

Detailed Description

Author
Thomas Helfer
Date
03/03/2021

Function Documentation

◆ buildRotationMatrix() [1/2]

std::array< mgis::real, 9u > mgis::behaviour::buildRotationMatrix ( const std::span< const mgis::real, 2u > & a)
inline

an helper function to build a 2D rotation matrix for an in-plane unit vector.

Returns
the matrix whose columns are the material axes, stored row by row, as the matrix of the @RotationMatrix keyword of MTest
Parameters
[in]amaterial axis

◆ buildRotationMatrix() [2/2]

std::array< mgis::real, 9u > mgis::behaviour::buildRotationMatrix ( const std::span< const mgis::real, 3u > & a1,
const std::span< const mgis::real, 3u > & a2 )
inline

an helper function to build a 3D rotation matrix from the first two material axes.

Returns
the matrix whose columns are the material axes, stored row by row, as the matrix of the @RotationMatrix keyword of MTest
Parameters
[in]a1first material axis
[in]a2second material axis