#include <vgl_sphere_3d.h>
Definition at line 17 of file vgl_sphere_3d.h.
Public Member Functions | |
| vgl_sphere_3d () | |
| Default constructor. | |
| vgl_sphere_3d (Type px, Type py, Type pz, Type radius) | |
| Construct from four Types. | |
| vgl_sphere_3d (const Type v[4]) | |
| Construct from 4-array. | |
| vgl_sphere_3d (vgl_point_3d< Type > const ¢re, Type radius) | |
| Construct from point and radius. | |
| bool | operator== (const vgl_sphere_3d< Type > &s) const |
| Test for equality. | |
| bool | operator!= (vgl_sphere_3d< Type >const &s) const |
| const vgl_point_3d< Type > & | centre () const |
| Type | radius () const |
| bool | is_empty () const |
| Return true if this sphere is empty. | |
| bool | contains (vgl_point_3d< Type > const &p) const |
| Return true iff the point p is inside (or on) this sphere. | |
| void | set_empty () |
| Make the sphere empty. | |
| void | set_radius (Type r) |
| Set min x ordinate of box (other sides unchanged). | |
| void | set_centre (const vgl_point_3d< Type > &c) |
| Set min y ordinate of box (other sides unchanged). | |
| bool | clip (const vgl_line_3d_2_points< Type > &line, vgl_point_3d< Type > &p1, vgl_point_3d< Type > &p2) const |
| Calculate the end points of a line clipped by this sphere. | |
Private Attributes | |
| vgl_point_3d< Type > | c_ |
| Type | r_ |
|
|||||||||
|
Default constructor.
Definition at line 26 of file vgl_sphere_3d.h. |
|
||||||||||||||||||||||||
|
Construct from four Types.
Definition at line 29 of file vgl_sphere_3d.h. |
|
||||||||||
|
Construct from 4-array.
Definition at line 32 of file vgl_sphere_3d.h. |
|
||||||||||||||||
|
Construct from point and radius.
Definition at line 35 of file vgl_sphere_3d.h. |
|
|||||||||
|
Definition at line 45 of file vgl_sphere_3d.h. |
|
||||||||||||||||||||
|
Calculate the end points of a line clipped by this sphere.
Definition at line 29 of file vgl_sphere_3d.txx. |
|
||||||||||
|
Return true iff the point p is inside (or on) this sphere.
Definition at line 20 of file vgl_sphere_3d.txx. |
|
|||||||||
|
Return true if this sphere is empty.
Definition at line 49 of file vgl_sphere_3d.h. |
|
||||||||||
|
Definition at line 40 of file vgl_sphere_3d.h. |
|
||||||||||
|
Test for equality.
Definition at line 38 of file vgl_sphere_3d.h. |
|
|||||||||
|
Definition at line 46 of file vgl_sphere_3d.h. |
|
||||||||||
|
Set min y ordinate of box (other sides unchanged).
Definition at line 62 of file vgl_sphere_3d.h. |
|
|||||||||
|
Make the sphere empty.
Definition at line 57 of file vgl_sphere_3d.h. |
|
||||||||||
|
Set min x ordinate of box (other sides unchanged).
Definition at line 60 of file vgl_sphere_3d.h. |
|
|||||
|
Definition at line 19 of file vgl_sphere_3d.h. |
|
|||||
|
Definition at line 20 of file vgl_sphere_3d.h. |
1.4.4