27 lines
517 B
C++
27 lines
517 B
C++
// Copyright 2007 Georgia Institute of Technology. All rights reserved.
|
|
// ABSOLUTELY NOT FOR DISTRIBUTION
|
|
/**
|
|
* @file geometry.h
|
|
*
|
|
* Geometric utilities.
|
|
*/
|
|
|
|
#ifndef MATH_GEOMETRY_H
|
|
#define MATH_GEOMETRY_H
|
|
|
|
#include "fastlib/base/base.h"
|
|
|
|
#include <math.h>
|
|
|
|
namespace math {
|
|
/**
|
|
* Computes the hyper-volume of a hyper-sphere of dimension d.
|
|
*
|
|
* @param r the radius of the hyper-sphere
|
|
* @param d the number of dimensions
|
|
*/
|
|
COMPILER_FUNCTIONAL double SphereVolume(double r, int d);
|
|
};
|
|
|
|
#endif
|