IMP logo
Public Member Functions | Protected Attributes
IMP::algebra::SpherePatch3D Class Reference

Detailed Description

A patch of a sphere is defined as all points above the plane and on the sphere.

List of all members.

Public Member Functions

 SpherePatch3D (const Sphere3D &sph, const Plane3D &crossing_plane)
 Constructor.
Vector3D get_boundary_point () const
 Get a point which is on the boundary of the patch.
bool get_contains (const Vector3D &p) const
 Return true if the point is contained in the patch.
Plane3D get_plane () const
Sphere3D get_sphere () const
void show (std::ostream &out=std::cout) const

Protected Attributes

Plane3D crossing_plane_
Sphere3D sph_

Constructor & Destructor Documentation

IMP::algebra::SpherePatch3D::SpherePatch3D ( const Sphere3D &  sph,
const Plane3D crossing_plane 
)

Constructor.

/param[in] sph the sphere to cut a patch from /param[in] crossing_plane the plane that crosses the sphere


Member Function Documentation

Vector3D IMP::algebra::SpherePatch3D::get_boundary_point ( ) const

Get a point which is on the boundary of the patch.

bool IMP::algebra::SpherePatch3D::get_contains ( const Vector3D p) const

Return true if the point is contained in the patch.

Note that the point must be on the sphere (this is not necessarily checked).


The documentation for this class was generated from the following file:

Generated on Tue May 22 2012 23:33:25 for IMP by doxygen 1.8.1