NASA - Jet Propulsion Laboratory
    + View the NASA Portal
Search JPL
Jet Propulsion Laboratory Home Earth Solar System Stars & Galaxies Technology
Introduction Background Software Links

geom_utils.h File Reference

#include "cxxutils.h"
#include "vec3.h"

Go to the source code of this file.

Functions

double orientation (const vec3 &loc, const vec3 &dir)
double v_angle (const vec3 &v1, const vec3 &v2)


Detailed Description

Geometric utility functions.

Copyright (C) 2003, 2006 Max-Planck-Society

Author:
Martin Reinecke

Reinhard Hell

Definition in file geom_utils.h.


Function Documentation

double orientation ( const vec3 loc,
const vec3 dir 
) [inline]

Returns the orientation when looking from point loc on the unit sphere in the direction dir. loc must be normalized. The result ranges from -pi to pi, is 0 for North and pi/2 for West, i.e. the angle is given in mathematically positive sense.

If loc is the North or South pole, the returned angle is atan2(dir.y,dir.x).

Definition at line 45 of file geom_utils.h.

double v_angle ( const vec3 v1,
const vec3 v2 
) [inline]

Returns the angle between v1 and v2 in radians.

Definition at line 61 of file geom_utils.h.


Generated on Fri Jun 18 16:12:29 2010 for LevelS C++ support library
Privacy / Copyright
FIRST GOV Contact: NASA Home Page Site Manager:
Webmaster:

CL 03-2650