#include <testing_sphere.h>
Public Member Functions | |
CTestingSphere () | |
Simple constructor. | |
CTestingSphere (double x, double y, double z, double radius) | |
Initializing constructor. | |
virtual bool | isIn (double x, double y, double z) |
Test point. | |
void | set (double x, double y, double z, double radius) |
Set sphere parameters. | |
Protected Attributes | |
double | m_radiussq |
Sphere radius squared. | |
double | m_x |
Sphere position. | |
double | m_y |
double | m_z |
Test if point is in the sphere
Definition at line 38 of file testing_sphere.h.
srs_env_model::CTestingSphere::CTestingSphere | ( | ) | [inline] |
Simple constructor.
Definition at line 42 of file testing_sphere.h.
srs_env_model::CTestingSphere::CTestingSphere | ( | double | x, |
double | y, | ||
double | z, | ||
double | radius | ||
) | [inline] |
Initializing constructor.
Definition at line 45 of file testing_sphere.h.
virtual bool srs_env_model::CTestingSphere::isIn | ( | double | x, |
double | y, | ||
double | z | ||
) | [inline, virtual] |
Test point.
Implements srs_env_model::CTestingObjectBase.
Definition at line 54 of file testing_sphere.h.
void srs_env_model::CTestingSphere::set | ( | double | x, |
double | y, | ||
double | z, | ||
double | radius | ||
) | [inline] |
Set sphere parameters.
Definition at line 50 of file testing_sphere.h.
double srs_env_model::CTestingSphere::m_radiussq [protected] |
Sphere radius squared.
Definition at line 62 of file testing_sphere.h.
double srs_env_model::CTestingSphere::m_x [protected] |
Sphere position.
Definition at line 65 of file testing_sphere.h.
double srs_env_model::CTestingSphere::m_y [protected] |
Definition at line 65 of file testing_sphere.h.
double srs_env_model::CTestingSphere::m_z [protected] |
Definition at line 65 of file testing_sphere.h.