Back to Aurora Vision Library Lite website
You are here: Start » Geometry 2D » Geometry 2D Features » VectorDirection
VectorDirection
Header: | AVL.h |
---|---|
Namespace: | avl |
Computes the direction angle of a vector as an angle in range the from 0 to 360.
Syntax
void avl::VectorDirection ( const avl::Vector2D& inVector, float& outDirection )
Parameters
Description
Note that because of inaccuracies of floating-point arithmetic, some geometric operations (including this one) may lead to unpredictable results for degenerated cases. In this filter such a case occurs when a zero vector is given on input.