Do this:
```
Scalar test_cosine = plane_a.head<3> ().dot(plane_b.head<3> ());
```
It is faster since you already know how much of the vector you need