#914 Added method to create rotation mx from two inplane vectors

This commit is contained in:
Jacob Støren
2016-10-19 12:06:27 +02:00
parent 522ae9998f
commit d82eb6a774
2 changed files with 31 additions and 0 deletions

View File

@@ -23,6 +23,7 @@
#include <list>
#include <map>
#include "cvfArrayWrapperConst.h"
#include "cvfMatrix3.h"
namespace cvf
{
@@ -35,6 +36,7 @@ class GeometryTools
{
public:
static cvf::Vec3d computeFaceCenter(const cvf::Vec3d& v0, const cvf::Vec3d& v1, const cvf::Vec3d& v2, const cvf::Vec3d& v3);
static cvf::Mat3f computePlaneHorizontalRotationMx(const cvf::Vec3f& inPlaneVec0, const cvf::Vec3f& inPlaneVec1);
static cvf::Vec3d projectPointOnLine(const cvf::Vec3d& p1, const cvf::Vec3d& p2, const cvf::Vec3d& p3, double* normalizedIntersection);