MantisBT - VTK
View Issue Details
0009544VTK(No Category)public2009-09-15 11:162016-08-12 09:55
David Doria 
Kitware Robot 
normalfeatureN/A
closedmoved 
 
 
0009544: Vector projection function
I didn't see anything like this in vtkMath, does it exist somewhere else? Or can this be added somewhere?

void Project(const double* A, const double* B, double* Projection)
{
    //find the projection of A on B
    double scale = vtkMath::Dot(A,B)/pow(vtkMath::Norm(B), 2);
    for(unsigned int i = 0; i < 3; i++)
        Projection[i] = scale * B[i];
}

A "ProjectVectorOnPlane" function would probably also be useful.
No tags attached.
Issue History
2009-09-15 11:16David DoriaNew Issue
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:55Kitware RobotNote Added: 0037102
2016-08-12 09:55Kitware RobotStatusexpired => closed
2016-08-12 09:55Kitware RobotResolutionopen => moved
2016-08-12 09:55Kitware RobotAssigned To => Kitware Robot

Notes
(0037102)
Kitware Robot   
2016-08-12 09:55   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.