This forum has been archived. All content is frozen. Please use KDE Discuss instead.

vector comparation

Tags: None
(comma "," separated)
Itun
Registered Member
Posts
7
Karma
0

vector comparation

Mon May 23, 2011 4:29 pm
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.
Image
What is the best way to do this with Eigen?
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: vector comparation

Tue May 24, 2011 7:43 pm
(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)) ...


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft