16 #ifndef SURGSIM_MATH_UNITTESTS_MOCKTRIANGLE_H 17 #define SURGSIM_MATH_UNITTESTS_MOCKTRIANGLE_H 36 v0(vertex0), v1(vertex1), v2(vertex2), v0v1(vertex1 - vertex0), v0v2(vertex2 - vertex0),
37 v1v2(vertex2 - vertex1)
44 v0(vertex0), v1(vertex1), v2(vertex2), v0v1(vertex1 - vertex0), v0v2(vertex2 - vertex0),
45 v1v2(vertex2 - vertex1), n(normal)
50 Vector3d pointInTriangle(
double a,
double b)
const 52 return v0 + a * v0v1 + b * v0v2;
64 void rotateAboutXBy(
double angle)
74 void rotateAboutYBy(
double angle)
84 void rotateAboutZBy(
double angle)
99 n = transform.linear() * n;
121 #endif // SURGSIM_MATH_UNITTESTS_MOCKTRIANGLE_H Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
Eigen::Matrix< double, 3, 1 > Vector3d
A 3D vector of doubles.
Definition: Vector.h:57
MockTriangle class used in the unit tests.
Definition: MockTriangle.h:28
Definitions of small fixed-size vector types.