API Reference > OdGe Classes > OdGeVector2d Class > OdGeVector2d Methods > OdGeVector2d::angleTo Method
OdGeVector2d::angleTo Method
Syntax
C++
double angleTo(const OdGeVector2d& vect) const;
Parameters 
Description 
const OdGeVector2d& vect 
[in] A 2D vector, angle to which is measured. 

Returns the angle between this vector and the specified vector. 

 

Returns a value in the range [0.0 .. OdaPI]. 

This function is commutative: 

a.angleTo (b) == b.angleTo (a)

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