FloatingPointMatrix3x2<T>
FloatingPointMatrix3x2<T>::CreateRotation(const Radian<T>& angle)
{
    FloatingPointMatrix3x2 result;
    CreateRotation(angle, result);
    return std::move(result);
}
Beispiel #2
0
/* Rotate matrix.
 * ARGUMENTS:
 * - rotation angle in degrees
 *     float angle;
 * - rotation vector
 *     Vec &radVec;
 * RETURNS: 
 * - rotated matrix
 *     Matrix &;
 */
Matrix &Matrix::Rotate( float angle, Vec &radVec )
{
  Matrix temp = CreateRotation(angle, radVec);

  temp *= *this;
  *this = temp;

  return *this;
} /* End of 'Rotate' function */
Beispiel #3
0
Matrix Matrix::CreateRotation(const Vector3& rotate)
{
    return CreateRotation(rotate.X, rotate.Y, rotate.Z);
    
}
Beispiel #4
0
Matrix4x4 Matrix4x4::CreateRotation( const CPPEngine::Vector3& rotation, bool radians )
{
    return CreateRotation( rotation.X, rotation.Y, rotation.Z, radians );
}