Registered Member
|
Is there a method to compare vectors?
I have a plane, there are borders in this plane. And I need to know where is a point of the plane inside this border. What is the best way to do this with Eigen? |
Moderator
|
(point.array()<topright.array()).all() && (point.array()>bottomleft.array()).all()
another option is to use our multi-dim aligned box: if(AlignedBox<float,2>(bl,tr).contains(point)) ... |
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft