Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find 3D vector's length using Eigen library [closed]

Tags:

vector

eigen

Please, could anyone tell me a way to find 3D vector's length using Eigen library (v.3 if probable)? Thank you in advance

like image 824
Vik Avatar asked Oct 21 '25 04:10

Vik


1 Answers

It's called the norm of a vector:

Vector3f v;
float length = v.norm();
like image 69
ggael Avatar answered Oct 24 '25 07:10

ggael



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!