mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
quaternion: Correct constructor from angle and axis
This commit is contained in:
@ -37,10 +37,8 @@ inline Foam::quaternion::quaternion(const scalar w, const vector& v)
|
||||
inline Foam::quaternion::quaternion(const vector& d, const scalar theta)
|
||||
:
|
||||
w_(cos(0.5*theta)),
|
||||
v_((sin(0.5*theta)/magSqr(d))*d)
|
||||
{
|
||||
normalize();
|
||||
}
|
||||
v_((sin(0.5*theta)/mag(d))*d)
|
||||
{}
|
||||
|
||||
inline Foam::quaternion::quaternion(const scalar w)
|
||||
:
|
||||
|
||||
Reference in New Issue
Block a user