13#include <MRPch/MREigenCore.h>
30 return Eigen::Matrix<T, 2, 1>{ v.
x, v.
y };
36 Eigen::Matrix<T, 2, 2> res;
45 Eigen::Matrix<T, 2, 2> res;
55 { m( 0, 0 ), m( 0, 1 ) },
56 { m( 1, 0 ), m( 1, 1 ) }
69 return Eigen::Matrix<T, 3, 1>{ v.
x, v.
y, v.
z };
75 Eigen::Matrix<T, 3, 3> res;
85 Eigen::Matrix<T, 3, 3> res;
86 res << m.
x.x, m.
x.y, m.
x.z,
96 { m( 0, 0 ), m( 0, 1 ), m( 0, 2 ) },
97 { m( 1, 0 ), m( 1, 1 ), m( 1, 2 ) },
98 { m( 2, 0 ), m( 2, 1 ), m( 2, 2 ) }
105 Eigen::Matrix<T, 4, 4> res;
116 Eigen::Matrix<T, 4, 4> res;
117 res << m.
x.x, m.
x.y, m.
x.z, m.
x.w,
118 m.
y.x, m.
y.y, m.
y.z, m.
y.w,
119 m.
z.x, m.
z.y, m.
z.z, m.
x.w,
120 m.
w.x, m.
w.y, m.
w.z, m.
w.w;
128 { m( 0, 0 ), m( 0, 1 ), m( 0, 2 ), m( 0, 3 ) },
129 { m( 1, 0 ), m( 1, 1 ), m( 1, 2 ), m( 1, 3 ) },
130 { m( 2, 0 ), m( 2, 1 ), m( 2, 2 ), m( 2, 3 ) },
131 { m( 3, 0 ), m( 3, 1 ), m( 3, 2 ), m( 3, 3 ) }
138 return Vector4<T>{ ev.
x(), ev.y(), ev.z(), ev.w() };
144 return Eigen::Matrix<T, 4, 1>{ v.
x, v.
y, v.
z, v.
w };
150 return Eigen::Matrix<T, 4, 1>{ v.
x, v.
y, v.
z, w };
162 return Eigen::Quaternion<T>{ q.
a, q.
b, q.
c, q.
d };
Vector2< T > fromEigen(const Eigen::Matrix< T, 2, 1 > &ev)
Definition MRToFromEigen.h:22
Eigen::Matrix< T, 2, 1 > toEigen(const Vector2< T > &v)
Definition MRToFromEigen.h:28
Definition MRCameraOrientationPlugin.h:8
Definition MRMatrix2.h:13
Vector2< T > x
rows, identity matrix by default
Definition MRMatrix2.h:18
Vector2< T > y
Definition MRMatrix2.h:19
Definition MRMesh/MRMatrix3.h:13
Vector3< T > x
rows, identity matrix by default
Definition MRMesh/MRMatrix3.h:18
Vector3< T > y
Definition MRMesh/MRMatrix3.h:19
Vector3< T > z
Definition MRMesh/MRMatrix3.h:20
Definition MRMatrix4.h:14
Vector4< T > z
Definition MRMatrix4.h:21
Vector4< T > y
Definition MRMatrix4.h:20
Vector4< T > w
Definition MRMatrix4.h:22
Vector4< T > x
rows, identity matrix by default
Definition MRMatrix4.h:19
Definition MRQuaternion.h:13
T d
imaginary part: b*i + c*j + d*k
Definition MRQuaternion.h:15
T c
Definition MRQuaternion.h:15
T a
real part of the quaternion
Definition MRQuaternion.h:14
T b
Definition MRQuaternion.h:15
Definition MRSymMatrix2.h:14
T xy
Definition MRSymMatrix2.h:18
T yy
Definition MRSymMatrix2.h:18
T xx
zero matrix by default
Definition MRSymMatrix2.h:18
Definition MRSymMatrix3.h:15
T xy
Definition MRSymMatrix3.h:19
T yz
Definition MRSymMatrix3.h:19
T xz
Definition MRSymMatrix3.h:19
T xx
zero matrix by default
Definition MRSymMatrix3.h:19
T zz
Definition MRSymMatrix3.h:19
T yy
Definition MRSymMatrix3.h:19
Definition MRSymMatrix4.h:13
T xz
Definition MRSymMatrix4.h:17
T zw
Definition MRSymMatrix4.h:19
T xx
zero matrix by default
Definition MRSymMatrix4.h:17
T ww
Definition MRSymMatrix4.h:20
T zz
Definition MRSymMatrix4.h:19
T xy
Definition MRSymMatrix4.h:17
T yz
Definition MRSymMatrix4.h:18
T xw
Definition MRSymMatrix4.h:17
T yy
Definition MRSymMatrix4.h:18
T yw
Definition MRSymMatrix4.h:18
Definition MRVector2.h:18
T x
Definition MRVector2.h:24
T y
Definition MRVector2.h:24
Definition MRMesh/MRVector3.h:19
T x
Definition MRMesh/MRVector3.h:25
T y
Definition MRMesh/MRVector3.h:25
T z
Definition MRMesh/MRVector3.h:25
Definition MRVector4.h:13
T y
Definition MRVector4.h:19
T z
Definition MRVector4.h:19
T x
Definition MRVector4.h:19
T w
Definition MRVector4.h:19