Panda3D
panda
src
physx
physxLinearInterpolationValues.h
Go to the documentation of this file.
1
/**
2
* PANDA 3D SOFTWARE
3
* Copyright (c) Carnegie Mellon University. All rights reserved.
4
*
5
* All use of this software is subject to the terms of the revised BSD
6
* license. You should have received a copy of this license along
7
* with this source code in a file named "LICENSE."
8
*
9
* @file physxLinearInterpolationValues.h
10
* @author enn0x
11
* @date 2010-02-08
12
*/
13
14
#ifndef PHYSXLINEARINTERPOLATIONVALUES_H
15
#define PHYSXLINEARINTERPOLATIONVALUES_H
16
17
#include "
pandabase.h
"
18
#include "
pmap.h
"
19
20
#include "
physx_includes.h
"
21
22
/**
23
*
24
*/
25
class
EXPCL_PANDAPHYSX
PhysxLinearInterpolationValues
{
26
27
public
:
28
INLINE
PhysxLinearInterpolationValues
();
29
INLINE ~
PhysxLinearInterpolationValues
();
30
31
void
output(std::ostream &out)
const
;
32
33
void
clear();
34
void
insert(
float
index,
float
value);
35
bool
is_valid(
float
number)
const
;
36
float
get_value(
float
number)
const
;
37
float
get_value_at_index(
int
index)
const
;
38
unsigned
int
get_size()
const
;
39
40
private
:
41
float
_min;
42
float
_max;
43
44
typedef
pmap<float, float>
MapType
;
45
MapType
_map;
46
};
47
48
INLINE std::ostream &operator << (std::ostream &out,
const
PhysxLinearInterpolationValues
&values) {
49
values.output(out);
50
return
out;
51
}
52
53
#include "
physxLinearInterpolationValues.I
"
54
55
#endif // PHYSXLINEARINTERPOLATIONVALUES_H
physxLinearInterpolationValues.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pmap< float, float >
pmap.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PhysxLinearInterpolationValues
Definition:
physxLinearInterpolationValues.h:25
physx_includes.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Generated on Mon Sep 14 2020 15:07:04 for Panda3D by
1.8.20