Class that represents a sphere in 3D space. More...
#include <Geometric.hpp>
Public Member Functions | |
| Sphere () | |
| Default constructor. | |
| Sphere (const sal3d_geometric_sphere &sphere) | |
| Constructor from a C sal3d_geometric_sphere. | |
| Sphere (const Sphere &sphere) | |
| Copy Constructor. | |
| Sphere (const Point3D ¢re, float r) | |
| Constructor from values. | |
| const sal3d_geometric_sphere & | c_sphere () const |
| Get a C sphere structure with the Sphere values. | |
| Point3D | centre () const |
| Gets the center of the Sphere. | |
| void | setCentre (const Point3D ¢re) |
| Sets the center of the Sphere. | |
| const float & | radius () const |
| Gets a const reference to the radius of the Sphere. | |
| float & | radius () |
| Gets a reference to the radius of the Sphere. | |
Class that represents a sphere in 3D space.
This class requires linking with geometric.lib (import library for geometric.dll).
| sal3d::Geometric::Sphere::Sphere | ( | ) | [inline] |
Default constructor.
Creates an uninitialized Sphere.
| sal3d::Geometric::Sphere::Sphere | ( | const sal3d_geometric_sphere & | sphere | ) | [inline, explicit] |
Constructor from a C sal3d_geometric_sphere.
Cretes a C++ Sphere object that copies the values from the C sal3d_geometric_sphere.
| [in] | sphere | The C sphere struct. |
| sal3d::Geometric::Sphere::Sphere | ( | const Sphere & | sphere | ) | [inline] |
| sal3d::Geometric::Sphere::Sphere | ( | const Point3D & | centre, |
| float | r | ||
| ) | [inline] |
Constructor from values.
| [in] | centre | Centre point of the sphere. |
| [in] | r | Radius of the sphere. |
References sal3d::Point3D::x(), sal3d::Point3D::y(), and sal3d::Point3D::z().
| const sal3d_geometric_sphere& sal3d::Geometric::Sphere::c_sphere | ( | ) | const [inline] |
| Point3D sal3d::Geometric::Sphere::centre | ( | ) | const [inline] |
| const float& sal3d::Geometric::Sphere::radius | ( | ) | const [inline] |
| float& sal3d::Geometric::Sphere::radius | ( | ) | [inline] |
| void sal3d::Geometric::Sphere::setCentre | ( | const Point3D & | centre | ) | [inline] |
Sets the center of the Sphere.
References sal3d::Point3D::x(), sal3d::Point3D::y(), and sal3d::Point3D::z().
by
1.7.6.1