向量AB,沿着n旋转10度

osg::Vec3 left = AB*osg::Matrix::rotate(osg::inDegrees(10), n);

osg::Vec3 right = AB*osg::Matrix::rotate(osg::inDegrees(-10), n);//right=-left

 

特殊情况下,可以使用向量叉乘实现,例如旋转90度

osg::Vec3 left = n^AB;

osg::Vec3 right = AB^n;

相关文章:

  • 2022-01-11
  • 2021-11-24
  • 2022-12-23
  • 2021-09-27
  • 2021-09-04
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-02
  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
  • 2022-02-13
  • 2022-03-04
  • 2022-12-23
相关资源
相似解决方案