Main Page | Namespace List | Class List | File List | Namespace Members | Class Members | Related Pages

geom::LineRT Struct Reference

A class representing a line as the angle and the distance from the origin. More...

#include <geom.hh>

List of all members.

Public Member Functions

 LineRT ()
 Create a line.

 LineRT (float rho, float theta)
 Create a line.

 LineRT (const Line &line)
 Create a line by converting from an end-point representation.

bool operator< (const LineRT &line) const
 Compares lines according to the rho values.


Public Attributes

float rho
 the distance to the origin

float theta
 the angle of the normal


Detailed Description

A class representing a line as the angle and the distance from the origin.

In this representation, rho is the distance between the line and the origin, and theta is the angle of the normal of the line.

Note:
rho can also be negative, and the range of theta is not restricted.


Constructor & Destructor Documentation

geom::LineRT::LineRT float  rho,
float  theta
[inline]
 

Create a line.

Parameters:
rho = the distance to the origin
theta = the angle of the normal

geom::LineRT::LineRT const Line line  )  [inline]
 

Create a line by converting from an end-point representation.

Parameters:
line = the line to convert from


The documentation for this struct was generated from the following file:
Generated on Sat Feb 26 22:54:39 2005 for GoCam by doxygen 1.3.4