mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
add the possibility to extend QuaternionBase
This commit is contained in:
parent
d17bb02ccd
commit
4824db6444
@ -1,7 +1,7 @@
|
|||||||
// This file is part of Eigen, a lightweight C++ template library
|
// This file is part of Eigen, a lightweight C++ template library
|
||||||
// for linear algebra.
|
// for linear algebra.
|
||||||
//
|
//
|
||||||
// Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr>
|
// Copyright (C) 2008-2010 Gael Guennebaud <gael.guennebaud@inria.fr>
|
||||||
// Copyright (C) 2009 Mathieu Gautier <mathieu.gautier@cea.fr>
|
// Copyright (C) 2009 Mathieu Gautier <mathieu.gautier@cea.fr>
|
||||||
//
|
//
|
||||||
// Eigen is free software; you can redistribute it and/or
|
// Eigen is free software; you can redistribute it and/or
|
||||||
@ -180,6 +180,10 @@ public:
|
|||||||
return typename ei_cast_return_type<Derived,Quaternion<NewScalarType> >::type(
|
return typename ei_cast_return_type<Derived,Quaternion<NewScalarType> >::type(
|
||||||
coeffs().template cast<NewScalarType>());
|
coeffs().template cast<NewScalarType>());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef EIGEN_QUATERNIONBASE_PLUGIN
|
||||||
|
# include EIGEN_QUATERNIONBASE_PLUGIN
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
|
Loading…
x
Reference in New Issue
Block a user