btVector3 a(1, 2, 3); btVector3 b(4, 5, 6); btVector3 c; c = a + b;
btVector3 d(2, 2, 2); btScalar e = d.dot(c);
btVector3 f(0, 0, 1); btVector3 g = f.rotate(btVector3(0, 1, 0), btRadians(90));In this example, we create another btVector3 object `f`, with the value (0, 0, 1). We then rotate it 90 degrees around the y-axis (which is the second component) and store the result in `g`. Package library: Bullet Physics Library.