OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vec2d.hpp File Reference
+ Include dependency graph for vec2d.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

EXTENSION_INLINE double _v2dMag (const Vec2d(v))
 

Function Documentation

EXTENSION_INLINE double _v2dMag ( const   Vec2dv)

Calculates the magnitude of a 2D cartesian vector.

Parameters
vThe 2D cartesian vector.
Returns
The magnitude of the vector.

Definition at line 30 of file vec2d.hpp.

References X_INDEX, and Y_INDEX.

Referenced by _hex2dToGeo().

30  {
31  return sqrt(v[X_INDEX] * v[X_INDEX] + v[Y_INDEX] * v[Y_INDEX]);
32 }
#define X_INDEX
Definition: vec2d.h:26
#define Y_INDEX
Definition: vec2d.h:27

+ Here is the caller graph for this function: