Public Member Functions | |
VectorD< 3 > | get_boundary_point () const |
Get a point which is on the boundary of the patch. | |
bool | get_contains (const VectorD< 3 > &p) const |
Return true if the point is contained in the patch. | |
Plane3D | get_plane () const |
SphereD< 3 > | get_sphere () const |
void | show (std::ostream &out=std::cout) const |
SpherePatch3D (const SphereD< 3 > &sph, const Plane3D &crossing_plane) | |
Constructor. | |
Protected Attributes | |
Plane3D | crossing_plane_ |
SphereD< 3 > | sph_ |
IMP::algebra::SpherePatch3D::SpherePatch3D | ( | const SphereD< 3 > & | 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
bool IMP::algebra::SpherePatch3D::get_contains | ( | const VectorD< 3 > & | 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).