API Reference
>
OdGe Classes
>
OdGeVector3d Class
>
OdGeVector3d Methods
>
angleTo Method
>
OdGeVector3d::angleTo Method (OdGeVector3d&, OdGeVector3d&)
OdGeVector3d::angleTo Method (OdGeVector3d&, OdGeVector3d&)
Collapse All
Syntax
C++
double
angleTo
(
const
OdGeVector3d
&
vect
,
const
OdGeVector3d
&
refVector
)
const
;
Parameters
Parameters
Description
const OdGeVector3d& vect
[in] Any 3D vector.
Description
Returns the angle to the specified vector.
Remarks
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)
Group
angleTo Method
Was this documentation helpful?
We are sorry. Please tell us what we can improve.
*
Great! Please provide additional feedback.
(Optional)
Thank you for your feedback!
Please wait...
Something went wrong!
Copyright © 2002–2020. Open Design Alliance. All rights reserved.
Send feedback about this topic