Metric Class Reference

#include <Metric.h>

Inherited by Cart.

Inheritance diagram for Metric:

Inheritance graph
[legend]
List of all members.

Static Public Member Functions

static double Norm (const Point *const point)
static double Distance (const Point *const x, const Point *const y)
static double Volume (Cubic_Bounding_Box bb)

Detailed Description

A Metric defines how to measure Points in space. Things we measure may include the norm and distance, for example. An example of a Metric in this sense is the Cartesian system.

Definition at line 23 of file Metric.h.


Member Function Documentation

static double Metric::Norm ( const Point *const  point  )  [static]

Defines the norm of a single point. A purely virtual function.

Parameters:
point The point we wish to calculate the norm of
Returns:
The norm

Reimplemented in Cart.

static double Metric::Distance ( const Point *const  x,
const Point *const  y 
) [static]

Defines the distance between two points. A purely virtual function.

Parameters:
x The first point
y The second point
Returns:
The distance between the two points (x-y)

Reimplemented in Cart.

static double Metric::Volume ( Cubic_Bounding_Box  bb  )  [static]

Defines the volume of a Cubic bounding box.

Parameters:
bb The bounding box we wish to know the volume of
Returns:
The requested volume

Reimplemented in Cart.


The documentation for this class was generated from the following file:
Generated on Sat Oct 13 17:34:43 2007 for R-Tree by  doxygen 1.5.2