31 return s << vec.
x <<
' ' << vec.
y;
36 return s << vec.
x <<
' ' << vec.
y <<
' ' << vec.
z;
41 return s << vec.
x <<
' ' << vec.
y <<
' ' << vec.
z <<
' ' << vec.
w;
47 return s >> vec.
x >> vec.
y;
52 return s >> vec.
x >> vec.
y >> vec.
z;
57 return s >> vec.
x >> vec.
y >> vec.
z >> vec.
w;
65 return s << mat.
x <<
'\n' << mat.
y <<
'\n' << mat.
z <<
'\n';
71 return s >> mat.
x >> mat.
y >> mat.
z;
79 return s << mat.
x <<
'\n' << mat.
y <<
'\n' << mat.
z <<
'\n' << mat.
w <<
'\n';
85 return s >> mat.
x >> mat.
y >> mat.
z >> mat.
w;
93 return s << pl.
n <<
'\n' << pl.
d;
99 return s >> pl.
n >> pl.
d;
104 template <
typename T>
107 return s << l.
p <<
'\n' << l.
d;
110 template <
typename T>
113 return s >> l.
p >> l.
d;
118 template <
typename T>
121 return s << tp.
a <<
' ' << tp.
b;
124 template <
typename T>
133 template <
typename T>
136 return s << xf.
A << xf.
b;
139 template <
typename T>
142 return s >> xf.
A >> xf.
b;
149 return s << pof.
face <<
'\n' << pof.
point;
156 pof.
face = FaceId( a );
166 return s << box.
min <<
'\n' << box.
max;
172 return s >> box.
min >> box.
max;
Definition MRCameraOrientationPlugin.h:8
std::istream & operator>>(std::istream &s, Vector2< T > &vec)
Definition MRStreamOperators.h:45
std::ostream & operator<<(std::ostream &s, const Vector2< T > &vec)
Definition MRStreamOperators.h:29
Definition MRMesh/MRAffineXf.h:14
V b
Definition MRMesh/MRAffineXf.h:19
M A
Definition MRMesh/MRAffineXf.h:18
Box given by its min- and max- corners.
Definition MRMesh/MRBox.h:25
V max
Definition MRMesh/MRBox.h:31
V min
Definition MRMesh/MRBox.h:31
V d
Definition MRLine.h:15
V p
Definition MRLine.h:15
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
Vector3< T > n
Definition MRPlane3.h:13
T d
Definition MRPlane3.h:14
Definition MRMesh/MRPointOnFace.h:11
FaceId face
Definition MRMesh/MRPointOnFace.h:12
Vector3f point
Definition MRMesh/MRPointOnFace.h:13
encodes a point inside a triangle using barycentric coordinates
Definition MRMesh/MRTriPoint.h:14
T b
b in [0,1], b=0 => point is on [v0,v1] edge, b=1 => point is in v2
Definition MRMesh/MRTriPoint.h:18
T a
a in [0,1], a=0 => point is on [v2,v0] edge, a=1 => point is in v1
Definition MRMesh/MRTriPoint.h:17
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