add new ctor (build similarity from euler angles)
This commit is contained in:
parent
0bb019d92e
commit
961c1dfff0
|
@ -24,6 +24,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
||||||
|
Revision 1.11 2004/12/15 18:45:50 tommyfranken
|
||||||
|
*** empty log message ***
|
||||||
|
|
||||||
Revision 1.10 2004/10/07 13:55:47 ganovelli
|
Revision 1.10 2004/10/07 13:55:47 ganovelli
|
||||||
templated on the kind of class used to implement rotation
|
templated on the kind of class used to implement rotation
|
||||||
(default is QUternion but it can be Matrix44 as well)
|
(default is QUternion but it can be Matrix44 as well)
|
||||||
|
@ -39,6 +42,9 @@ unified to the gl stlyle matix*vector. removed vector*matrix operator
|
||||||
|
|
||||||
Revision 1.6 2004/03/25 14:57:49 ponchio
|
Revision 1.6 2004/03/25 14:57:49 ponchio
|
||||||
Microerror. ($LOG$ -> $Log: not supported by cvs2svn $
|
Microerror. ($LOG$ -> $Log: not supported by cvs2svn $
|
||||||
|
Microerror. ($LOG$ -> Revision 1.11 2004/12/15 18:45:50 tommyfranken
|
||||||
|
Microerror. ($LOG$ -> *** empty log message ***
|
||||||
|
Microerror. ($LOG$ ->
|
||||||
Microerror. ($LOG$ -> Revision 1.10 2004/10/07 13:55:47 ganovelli
|
Microerror. ($LOG$ -> Revision 1.10 2004/10/07 13:55:47 ganovelli
|
||||||
Microerror. ($LOG$ -> templated on the kind of class used to implement rotation
|
Microerror. ($LOG$ -> templated on the kind of class used to implement rotation
|
||||||
Microerror. ($LOG$ -> (default is QUternion but it can be Matrix44 as well)
|
Microerror. ($LOG$ -> (default is QUternion but it can be Matrix44 as well)
|
||||||
|
@ -70,6 +76,12 @@ public:
|
||||||
Similarity(const RotationType &q) { SetRotate(q); }
|
Similarity(const RotationType &q) { SetRotate(q); }
|
||||||
Similarity(const Point3<S> &p) { SetTranslate(p); }
|
Similarity(const Point3<S> &p) { SetTranslate(p); }
|
||||||
Similarity(S s) { SetScale(s); }
|
Similarity(S s) { SetScale(s); }
|
||||||
|
Similarity(S alpha, S beta, S gamma)
|
||||||
|
{
|
||||||
|
rot.FromEulerAngles(alpha, beta, gamma);
|
||||||
|
tra = Point3<S>(0, 0, 0);
|
||||||
|
sca = 1;
|
||||||
|
}
|
||||||
|
|
||||||
Similarity operator*(const Similarity &affine) const;
|
Similarity operator*(const Similarity &affine) const;
|
||||||
Similarity &operator*=(const Similarity &affine);
|
Similarity &operator*=(const Similarity &affine);
|
||||||
|
|
Loading…
Reference in New Issue