API Reference > OdGe Classes > OdGeVector3d Class > OdGeVector3d Methods > angleTo Method > OdGeVector3d::angleTo Method (OdGeVector3d&, OdGeVector3d&)
OdGeVector3d::angleTo Method (OdGeVector3d&, OdGeVector3d&)
Syntax
C++
double angleTo(const OdGeVector3d& vect, const OdGeVector3d& refVector) const;
Parameters 
Description 
const OdGeVector3d& vect 
[in] Any 3D vector. 

Returns the angle to the specified vector. 

 

If refVector is specified:

  • Returns a value in the range [0.0 .. Oda2PI].
  • If (refVector.dotProduct(crossProduct(vect)) >= 0.0, the return value is angleTo(vect).
  • If (refVector.dotProduct(crossProduct(vect)) < 0.0, the return value is Oda2PI - angleTo(vect)

Copyright © 2002–2020. Open Design Alliance. All rights reserved.