geom Namespace Reference

Classes for handling the geometry of points and lines. More...


Classes

struct  Point
 A class representing a point in a 2-dimensional space. More...
struct  Line
 A class representing a line as two end points. More...
struct  LineRT
 A class representing a line as the angle and the distance from the origin. More...
struct  Grid
 A structure representing a grid as a matrix of points. More...

Functions

Point mean (Point p1, Point p2, float weight=0.5)
 Compute a weighted mean of two points.
float rad (float angle)
 Convert degrees to radians.
float deg (float angle)
 Convert radians to degrees.


Detailed Description

Classes for handling the geometry of points and lines.

Function Documentation

float geom::deg float  angle  )  [inline]
 

Convert radians to degrees.

Parameters:
angle = the angle in radians
Returns:
the angle in degrees

Point geom::mean Point  p1,
Point  p2,
float  weight = 0.5
[inline]
 

Compute a weighted mean of two points.

Parameters:
p1 = the first points
p2 = the second point
weight = the weight of the first point

float geom::rad float  angle  )  [inline]
 

Convert degrees to radians.

Parameters:
angle = the angle in degrees
Returns:
the angle in radians


Generated on Tue Apr 8 09:58:19 2008 for GoCam by  doxygen 1.4.6