OpenLexocad
27.1
Sphere.h
Go to the documentation of this file.
1
#pragma once
2
3
4
#include <Base/base_defines.h>
5
#include <
Geom/Pnt.h
>
6
7
namespace
Base
8
{
9
class
LX_BASE_EXPORT
Sphere
10
{
11
public
:
12
Sphere
(
void
);
13
Sphere
(
const
Geom::Pnt
& center,
const
double
& radius);
14
void
setValue(
const
Geom::Pnt
& center,
const
double
& radius);
15
void
setCenter(
const
Geom::Pnt
& center);
16
void
setRadius(
const
double
& radius);
17
const
Geom::Pnt
& getCenter(
void
)
const
;
18
const
double
& getRadius(
void
)
const
;
19
20
bool
pointInside(
const
Geom::Pnt
& p)
const
;
21
22
private
:
23
Geom::Pnt
_center;
24
double
_radius;
25
};
26
27
}
// namespace Base
Pnt.h
Geom::Pnt
Defines a non-persistent 3D Cartesian point.
Definition:
Pnt.h:43
Base::Sphere
Definition:
Sphere.h:9
Base
Definition:
AbstractXMLReader.h:5
lexocad
Base
include
Base
Sphere.h
Generated by
1.8.15