Tatooine
geometry
include
tatooine
geometry
ellipsoid.h
Go to the documentation of this file.
1
#ifndef TATOOINE_GEOMETRY_ELLIPSOID_H
2
#define TATOOINE_GEOMETRY_ELLIPSOID_H
3
//==============================================================================
4
#include <
tatooine/geometry/hyper_ellipse.h
>
5
#include <tatooine/real.h>
6
//==============================================================================
7
namespace
tatooine::geometry
{
8
//==============================================================================
9
template
<
float
ing_po
int
Real>
10
struct
ellipsoid
:
hyper_ellipse
<Real, 3> {
11
using
this_type
=
ellipsoid
;
12
using
parent_type
=
hyper_ellipse<Real, 3>
;
13
using
parent_type::parent_type
;
14
};
15
//==============================================================================
16
ellipsoid
()->ellipsoid<
real_type
>;
17
//------------------------------------------------------------------------------
18
template
<
float
ing_po
int
Real0,
float
ing_po
int
Real1,
float
ing_po
int
Real2>
19
ellipsoid
(Real0, Real1, Real2) ->
ellipsoid<common_type<Real0, Real1, Real2>
>;
20
//------------------------------------------------------------------------------
21
template
<
float
ing_po
int
Real0,
float
ing_po
int
Real1,
float
ing_po
int
Real2>
22
ellipsoid
(
vec<Real0, 3>
&,
vec<Real1, 3>
&,
vec<Real2, 3>
&)
23
->
ellipsoid<common_type<Real0, Real1, Real2>
>;
24
//==============================================================================
25
}
// namespace tatooine::geometry
26
//==============================================================================
27
namespace
tatooine::reflection
{
28
//==============================================================================
29
template
<
typename
Real>
30
TATOOINE_MAKE_TEMPLATED_ADT_REFLECTABLE(
31
(
geometry::ellipsoid<Real>
),
32
TATOOINE_REFLECTION_INSERT_METHOD(center, center()),
33
TATOOINE_REFLECTION_INSERT_METHOD(S, S()))
34
//==============================================================================
35
}
// namespace tatooine::reflection
36
//==============================================================================
37
#endif
real_type
hyper_ellipse.h
tatooine::geometry
Definition:
ellipse.h:11
tatooine::reflection
Definition:
linspace.h:172
tatooine::geometry::ellipsoid
Definition:
ellipsoid.h:10
tatooine::geometry::hyper_ellipse
Definition:
hyper_ellipse.h:12
tatooine::polynomial< Real, 3 >
tatooine::vec
Definition:
vec.h:12
Generated by
1.9.5