AGX Dynamics
2.35.0.1
MaterialTypes.h
Go to the documentation of this file.
1
/*
2
Copyright 2007-2022. Algoryx Simulation AB.
3
4
All AGX source code, intellectual property, documentation, sample code,
5
tutorials, scene files and technical white papers, is copyrighted, proprietary
6
and confidential material of Algoryx Simulation AB. You may not download, read,
7
store, distribute, publish, copy or otherwise disseminate, use or expose this
8
material unless having a written signed agreement with Algoryx Simulation AB, or having been
9
advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10
valid commercial license from Algoryx Simulation AB.
11
12
Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13
from using this software, unless otherwise stated in written agreements with
14
Algoryx Simulation AB.
15
*/
16
17
#ifndef AGX_MATERIALTYPES_H
18
#define AGX_MATERIALTYPES_H
19
20
#include <
agxData/Type.h
>
21
22
namespace
agx
23
{
24
struct
SimpleContactMaterial
25
{
26
SimpleContactMaterial
();
27
SimpleContactMaterial
(
Real
friction_,
Real
restitution_);
28
Real
friction
;
29
Real
restitution
;
30
};
31
32
/* Implementation */
33
inline
SimpleContactMaterial::SimpleContactMaterial
() {}
34
inline
SimpleContactMaterial::SimpleContactMaterial
(
Real
friction_,
Real
restitution_)
35
: friction(friction_)
36
, restitution(restitution_)
37
{
38
}
39
40
AGX_FORCE_INLINE
std::ostream&
operator<<
( std::ostream& stream,
const
SimpleContactMaterial
&
/*material*/
)
41
{
42
stream <<
"TODO Implement ostream << SimpleContactMaterial"
<< std::endl;
43
return
stream;
44
}
45
}
46
47
48
AGX_TYPE_BINDING
(
agx::SimpleContactMaterial
,
"ContactMaterial"
)
49
50
#endif
/* AGX_MATERIALTYPES_H */
Type.h
AGX_TYPE_BINDING
#define AGX_TYPE_BINDING(_Type, _Name)
Definition:
Type.h:179
AGX_FORCE_INLINE
#define AGX_FORCE_INLINE
Definition:
macros.h:58
agx
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Definition:
AddedMassInteraction.h:23
agx::Real
double Real
Definition:
Real.h:42
agx::operator<<
std::ostream & operator<<(std::ostream &stream, const AtomicValueT< T > &value)
Definition:
AtomicValue.h:109
agx::SimpleContactMaterial
Definition:
MaterialTypes.h:25
agx::SimpleContactMaterial::restitution
Real restitution
Definition:
MaterialTypes.h:29
agx::SimpleContactMaterial::SimpleContactMaterial
SimpleContactMaterial()
Definition:
MaterialTypes.h:33
agx::SimpleContactMaterial::friction
Real friction
Definition:
MaterialTypes.h:28
include
agx
MaterialTypes.h
Generated on Fri Jan 20 2023 10:48:18 for AGX Dynamics by
1.9.1